Subject: Re: [xsl] Numbering From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Wed, 10 Jul 2002 12:17:55 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Numbering, alexandre bord | Thread | Re: [xsl] Numbering, Lawrence Mielniczuk |
RE: [xsl] Design Issues in XSLT, Emmanuel Oviosa | Date | Re: [xsl] Numbering, Lawrence Mielniczuk |
Month |