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

how to select nodes based on attribute values

Subject: how to select nodes based on attribute values
From: Archie Russell <archier@xxxxxxxxxxxxxxx>
Date: Thu, 5 Oct 2000 15:49:54 -0700
select node attribute
is there a way to select a node based on attribute value matching attribute
value in another node?

example

<?xml version="1.0" encoding="UTF-8"?>
<xxx>
<a element_id="1" name="xxx"/>
<a element_id="2" name="yyy"/>
<b pick_id="1"/>
</xxx>

i want to select all 'a' elements that have element_id matching the value of
'b's pick_id (my context is being "in" b)
i've tried [] but i can't see how to refer to the attributes of "a" and "b"
simultaneously.

thanks for any help,
archie

archie russell
doubletwist.com
510-587-5766


 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.