]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in variablelist width calc that was returning zero.
authorBob Stayton <bobs@sagehill.net>
Mon, 29 Sep 2003 04:39:33 +0000 (04:39 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 29 Sep 2003 04:39:33 +0000 (04:39 +0000)
xsl/fo/lists.xsl

index ec050dfe3d891d72be6f1d110a2d83ea1ed6ac84..c6987a0fd4e1d00b0cccaebda86b83b0ed79e549 100644 (file)
     <xsl:when test="not($terms)">
       <xsl:value-of select="$longest"/>
     </xsl:when>
-    <xsl:when test="string-length($terms[1]/*[not(indexterm)]) &gt; $longest">
+    <xsl:when test="string-length($terms[1]/node()[not(indexterm)]) &gt; $longest">
       <xsl:call-template name="longest.term">
         <xsl:with-param name="longest" 
-                        select="string-length($terms[1]/*[not(indexterm)])"/>
+           select="string-length($terms[1]/node()[not(indexterm)])"/>
         <xsl:with-param name="maxlength" select="$maxlength"/>
         <xsl:with-param name="terms" select="$terms[position() &gt; 1]"/>
       </xsl:call-template>