|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: number question
This is one way of achieving ur result. <xsl:template match="/"> <xsl:for-each select="//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:for-each> </xsl:template> or you can use like this <xsl:template match="/"> <xsl:apply-templates select="//form"/> </xsl:template> <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> Francis > This could be a usefull feature but I want the numbers > 1,2,3$4 returned. 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








