xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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" />
</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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor