GNOME Bugzilla – Bug 53697
xsl:number level=multiple
Last modified: 2009-08-15 18:40:50 UTC
The "multiple" level attribute to xsl:number element does not seem to behave correctly. (test files taken from www.zvon.org): [rchaillat@pc-1229 modules]$ cat number.xsl <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" > <xsl:output method = "text" /> <xsl:template match = "/" > <xsl:apply-templates select = "//AAA" /> </xsl:template> <xsl:template match = "*" > <xsl:number level = "multiple"/> <xsl:text > AAA </xsl:text> </xsl:template> </xsl:stylesheet> [rchaillat@pc-1229 modules]$ cat number.xml <AAA> <AAA> <AAA/> <AAA/> <AAA/> </AAA> <AAA> <AAA/> <AAA/> <AAA/> </AAA> <AAA> <AAA/> <AAA/> <AAA/> </AAA> </AAA> [rchaillat@pc-1229 modules]$ xsltproc number.xsl number.xml 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA 1 AAA It should output instead: 1 AAA 1.1 AAA 1.1.1 AAA 1.1.2 AAA 1.1.3 AAA 1.2 AAA 1.2.1 AAA 1.2.2 AAA 1.2.3 AAA 1.3 AAA 1.3.1 AAA 1.3.2 AAA 1.3.3 AAA Regards, Renaud
Bjorn Reese fixed it in CVS, it will be in the next release, thanks for the report, Daniel
shipped in 0.9.0 Daniel