]> granicus.if.org Git - docbook-dsssl/commitdiff
Changed test expression used for determining whether a term in a
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 7 Apr 2006 00:13:08 +0000 (00:13 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 7 Apr 2006 00:13:08 +0000 (00:13 +0000)
variablelist is the final term. Was using "position() = last()",
but that caused a fatal XPath error in xsltproc (though not in
Saxon); changed to "not(following-sibling::term)", which is
probably a better way of doing it anyway.

xsl/fo/lists.xsl

index 70d5344e48207d73c7cbf650bf5612ec9028cfa0..9bd15ec571b7b0d7dd382047faacec993f435367 100644 (file)
 <xsl:template match="varlistentry/term">
   <fo:inline><xsl:apply-templates/></fo:inline>
   <xsl:choose>
-    <xsl:when test="position() = last()"/> <!-- do nothing -->
+    <xsl:when test="not(following-sibling::term)"/> <!-- do nothing -->
     <xsl:otherwise>
       <!-- * if we have multiple terms in the same varlistentry, generate -->
       <!-- * a separator (", " by default) and/or an additional line -->