Subject: Re: 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" />
</xsl:template>
There's no need to use the variable unless you're repeating the number
or wanting to manipulate it in some way.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|