On Sun, 27 Oct 2002, David Corbin wrote:

> I've got an element X with two attributes, A & B.  I want to identify 
> the B attribute but only for elements that have an A value == 'foo'.
> 
> <X A='bar' B='red'/>
> <X A='foo' B='green'/>
> <X A='bar' B='blue'/>
> <X A='foo' B='yellow'/>
> 
> So, selectNodes shhould return "green" & "yellow".
> 
> I know that //X[@A='foo'] will get me the right set of X nodes,
> and I know that //X/@B will get me the attribute B values,
> but I'm not sure how they should be combined.


        //X[@A='foo']/@B

-bob





-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to