[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Position() on template matches


Subject: Re: [xsl] Position() on template matches
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Wed, 26 Oct 2005 09:38:05 +0200

   <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


Current Thread