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(_dot_)Josten(_at_)daidalos(_dot_)nl]
Sent: Wednesday, October 26, 2005 3:38 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--