Altova Mailing List Archives

RE: [xsl] Comment about XSLT Complier?

From: "Michael Kay" <mhkay@------------>
Date: 3/16/2001 12:05:00 AM
>     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:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.