xsl-list
[Top] [All Lists]

Re: Position() on template matches

2005-10-26 00:38:05
   <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>
--~--



<Prev in Thread] Current Thread [Next in Thread>