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: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 2 Feb 2001 09:09:11 -0000

> Now I need in each StretchText-Node the number of itself.
> That means what is the number of the StretchText - node if I look at 
> the whole tree. So I can count  ALL Stretchtext-nodes from 1 to n.

Use either
<xsl:number level="any"/>
or
<xsl:value-of select="count(preceding::StretchText) + 1"/>

Mike Kay 

 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