|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Numbering
Hi Alexandre, > Suppose i have an XML file like this : > <section level="1" title="foo"> > <section level="2" title="bar"> > <section level="3" title="foobar"> > </section> > </section> > </section> > > How can i number each section title ? : > 1. Foo > ... > 1.1 Bar > ... > 1.1.1 Foobar > ... > 2. Use xsl:number with level="multiple": <xsl:template match="section"> <xsl:number level="multiple" /> <xsl:text> </xsl:text> <xsl:value-of select="@title" /> </xsl:template> Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








