</xsl:otherwise>
</xsl:choose>
<xsl:variable name="charlength_first">
- <xsl:apply-templates select="*[3]" mode="charcount"/>
+ <xsl:apply-templates select="*[3]/*[1]" mode="charcount"/>
</xsl:variable>
<xsl:variable name="charlength_second">
- <xsl:apply-templates select="*[4]" mode="charcount"/>
+ <xsl:apply-templates select="*[4]/*[1]" mode="charcount"/>
</xsl:variable>
<xsl:variable name="charlength_side_proof">
- <xsl:apply-templates select="*[5]" mode="charcount"/>
+ <xsl:apply-templates select="*[5]/*[1]" mode="charcount"/>
</xsl:variable>
<xsl:variable name="split1"
select="$charlength_first + $charlength_second > $framewidth"/>
<xsl:if test="$split1">
<br/>
<xsl:call-template name="make_indent">
- <xsl:with-param name="current_indent" select="$current_indent"/>
+ <xsl:with-param name="current_indent" select="$current_indent + 2"/>
</xsl:call-template>
</xsl:if>
<FONT color="red">with </FONT>
<xsl:if test="$split2">
<br/>
<xsl:call-template name="make_indent">
- <xsl:with-param name="current_indent" select="$current_indent"/>
+ <xsl:with-param name="current_indent" select="$current_indent + 2"/>
</xsl:call-template>
</xsl:if>
<FONT color="red">by </FONT>
<xsl:apply-templates select="*[5]">
- <xsl:with-param name="current_indent" select="$current_indent+5"/>
+ <xsl:with-param name="current_indent" select="$current_indent+7"/>
</xsl:apply-templates>
</xsl:when>
<!-- rewrite and apply -->