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: Comment about XSLT Complier?


>     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


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