[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:number question
The xml: <page> <form orgcode="One"/> <form orgcode="Two"/> <form orgcode="Three"/> <form orgcode="Four"/> </page> The xsl: <xsl:template match="form"> <xsl:variable name="formPosition"> <xsl:number value="position()"> </xsl:variable> <tr> <td><xsl:value-of select="./@orgcode"/> - <xsl:value-of select="$formPosition"/></td> </tr> </xsl:template> The onscreen output (html) looks like this: One - 2 Two - 4 Three - 6 Four - 8 This could be a usefull feature but I want the numbers 1,2,3$4 returned. Can anyone shed some light on this, please BTW I use saxon as an xslt processor Perry Molendijk ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
|