[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: position of an element
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 25 May 2001 13:16:28 +0100
> <template match="content">
> 	<xsl:value-of 
> select="position-of-this-element-in-the-document()" />
> </template>
> 

You can use xsl:number, or count(preceding-sibling::*)+1

Mike Kay
Software AG

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member