After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 53697 - xsl:number level=multiple
xsl:number level=multiple
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-04-26 16:46 UTC by rchaillat
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rchaillat 2001-04-26 16:46:27 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
Comment 1 Daniel Veillard 2001-04-29 08:10:16 UTC
Bjorn Reese fixed it in CVS, it will be in the next release,

 thanks for the report,

Daniel
Comment 2 Daniel Veillard 2001-05-04 10:46:08 UTC
shipped in 0.9.0
Daniel