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

Re: Seeking XPATH

Subject: Re: Seeking XPATH
From: "Derek Ngok" <derek.ngok@xxxxxxxxxxxxxxxx>
Date: Tue, 6 Mar 2001 10:57:34 +0800
b nm .
Hi,

Try to append "/.." at the end, e.g. A/B[@NM = "case3"]/..

Derek

----- Original Message -----
From: "Paul" <pbell@xxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, March 06, 2001 2:07 AM
Subject:  Seeking XPATH


> Hi All,
>
> Suppose an XML DOM containing something like
>
> <ROOT>
>
> <A>
>   <B NM="case1">abc</B>
>   <B NM="case2">xyz</B>
>    ---
> </A>
>
> <A>
>   <B NM="case3">abc</B>
>   <B NM="case4">def</B>
>    ----
> </A>
>
> <A>
>   <B NM="case5">lmn</B>
>   <B NM="case6">qrs</B>
>    ----
> </A>
>
> </ROOT>
>
> Can someone propose an XPATH expression that will find 'A' nodes that have
> 'B' nodes with matching attribute values?  In the above data data, such an
> expression would match the first two A nodes because in first A - A/B[@NM
=
> "case1"] has the same node value as the second A's A/B[@NM = "case3"].
Each
> has the value 'abc'.
>
> Thanks for your help.
>
> Cordially,
>
> Paul
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread
  • Seeking XPATH
    • Paul - Mon, 5 Mar 2001 13:07:31 -0500 (EST)
      • Derek Ngok - Mon, 5 Mar 2001 21:57:29 -0500 (EST) <=
      • <Possible follow-ups>
      • Paul Bell - Tue, 6 Mar 2001 13:12:54 -0500 (EST)

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.