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

RE: XPATH: how to get position of child-elementTAG ?

Subject: RE: XPATH: how to get position of child-elementTAG ? (order of elemenTAGs, not of element)
From: "ChandraShekar, A" <ChandraShekar.A@xxxxxxxxxxx>
Date: Tue, 16 Aug 2005 16:40:53 +0530
xpath get parent
-----Original Message-----
From: Jule Kleine [mailto:listmail@xxxxxx]
Sent: Tuesday, August 16, 2005 4:20 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  XPATH: how to get position of child-elementTAG ? (order of
elemenTAGs, not of element)


Hi,

I would like to check, if the name of the second element of root is
"youngestSon". Is it possible to query this with xpath (I use xquery with
xpath-expressions, in fact I already know the name of the element but want to
get sure with an exist-statement, that the element's position is 2) ?

<parent>
<oldestSon>A</oldestSon>
<youngestSon>B</youngestSon>
</parent>

Note, that the child element names are different. What I dont need is the
second son in the following example (therefor I could use
/parent/son[position()==2] )

<parent>
<son>A</son>
<son>B</son>
</parent>

Thank you for any help!
Jule
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail kvnnen Sie eine SMS an alle Freunde
gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

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.