This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Function position()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]