Subject: RE: Comment about XSLT Complier?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 16 Mar 2001 09:39:37 -0000
|
> Does anyone knows how to get the aboslute value of an element
> within a tree? and by that I mean the order on which it is listed
> within that tree. Look at the tree below
>
> <child1>
> </child1>
> <child2>
> <child2-1>
>
> To be more clear I am looking for this type of information
>
> "child1" - is number 1
> "child2" - is number 2
> "child2-1" - is number 3
Try count(preceding::* | ancestor::*)+1
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Comment about XSLT Complier?, (continued)
- Ball, Mike - Thu, 15 Mar 2001 07:30:31 -0500 (EST)
- Xu, Xiaocun - Thu, 15 Mar 2001 08:52:40 -0500 (EST)
- Michael Kay - Thu, 15 Mar 2001 11:24:18 -0500 (EST)
- Carmelo Montanez - Thu, 15 Mar 2001 16:16:25 -0500 (EST)
- Michael Kay - Fri, 16 Mar 2001 05:05:19 -0500 (EST) <=
- Tim Watts - Thu, 15 Mar 2001 18:43:10 -0500 (EST)
- Dylan Walsh - Thu, 15 Mar 2001 11:12:18 -0500 (EST)
- Xu, Xiaocun - Thu, 15 Mar 2001 11:43:42 -0500 (EST)
|
|