Re: [xsl] Function position()

Subject: Re: [xsl] Function position()
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Thu, 1 Feb 2001 13:35:50 +0000
Paul Terray wrote:
> use :
> <xsl:template match"StretchText">
>   <xsl:variable name="pos">
>    <xsl:number level="any"/>
>   </xsl:variable>
>   <xsl:value-of select="$pos"/>
> </xsl:template>

Just to point out, that has exactly the same effect as:

<xsl:template match="StretchText">
   <xsl:number level="any" />

There's no need to use the variable unless you're repeating the number
or wanting to manipulate it in some way.



Jeni Tennison

 XSL-List info and archive:

Current Thread