[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Absolute position

Subject: Absolute position
From: "Carmelo Montanez" <carmelo@xxxxxxxx>
Date: Thu, 15 Mar 2001 04:23:26 -0500
absolute position
Hi all:

    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>
          <child2-1-1>
             <child2-1-1-1>
             </child2-1-1-1>
          </child2-1-1>
     </child2-1>
  </child2>
  <child3>
      <child3-1>
      </child3-1>
  </child3>
  <child4>
  </child4>
</parent>

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
"child2-1-1" is number 4
"child2-1-1-1" is number 5
"child3" is number 6
"child3-1" is number 7
"child4" is number 8

and so on ....

in other words its "absolute position" as you read from to to bottom and
I want to know that information when THAT node is the context node
in other words if  "child6" is the current node I want to know that
it is really number 6 as I read. Any ideas?



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.