This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Function position()
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Function position()
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Thu, 1 Feb 2001 13:35:50 +0000
- Organization: Jeni Tennison Consulting Ltd
- References: <5.0.2.1.0.20010201125118.00b83ec0@192.9.200.78>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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