|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Position() on template matches
Thanks a lot. My comprehension of the "level" attribute was definitely lacking. I went back and read MK's explanation of this attribute and it makes since now. Thanks for the boost. -Kevin -----Original Message----- From: Geert Josten [mailto:Geert.Josten@xxxxxxxxxxx] Sent: Wednesday, October 26, 2005 3:38 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: 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
|

Cart








