|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: numbering
Hi,
just combine the two previous answers: XML: <root>
<text>one</text>
<text>two</text>
</root>XSL (based on example 4 shown at http://www.w3schools.com/xsl/el_number.asp): <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="root"> <html> <body> <p> <xsl:for-each select="text"> <xsl:number value="position()" format="1.- " /> <xsl:value-of select="text()" /><br /> </xsl:for-each> </p> </body> </html> </xsl:template> </xsl:stylesheet> HTML: <html><body><p>1.- one<br>2.- two<br></p></body></html> Menzo Windhouwer Dionisio Ruiz de Zarate wrote: but this bucle is into one for-each how can i put : 1.- 2.- 3.- ......
|
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








