]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug #779655: fix PIs and comments in segmented lists
authorNorman Walsh <ndw@nwalsh.com>
Sun, 28 Sep 2003 17:02:28 +0000 (17:02 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 28 Sep 2003 17:02:28 +0000 (17:02 +0000)
xsl/fo/lists.xsl
xsl/html/lists.xsl

index d24a1241839900829cd2cf5c9f924d7676cd3ee2..ec050dfe3d891d72be6f1d110a2d83ea1ed6ac84 100644 (file)
 </xsl:template>
 
 <xsl:template match="seg">
-  <xsl:variable name="segnum" select="position()"/>
+  <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
   <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
   <xsl:variable name="segtitles" select="$seglist/segtitle"/>
 
index 2c52d1e8a292dd18f9e7b3dbd1ee2c650eb3598b..265b9b149043664d77f9789d2466bda09b50f4a6 100644 (file)
 </xsl:template>
 
 <xsl:template match="seg">
-  <xsl:variable name="segnum" select="position()"/>
+  <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
   <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
   <xsl:variable name="segtitles" select="$seglist/segtitle"/>