[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Position() on template matches
<xsl:template match="output/tester"> <xsl:variable name="pos"><xsl:number/></xsl:variable> <xsl:element name="myOut"><xsl:value-of select="$pos"/></xsl:element> </xsl:template> Use <xsl:number level="any" /> instead.. By the way, you can put it in the element directly, you do not need to put it in a variable first.. Cheers, Geert
|
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
|