Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT- Select Node Based on Its Value 1

Status
Not open for further replies.

BoulderBum

Programmer
Joined
Jul 11, 2002
Messages
2,179
Location
US
If I have

<A>
<B>first</B>
<B>second</B> <--want this
<B>third<B>
</A>
<A>
<B>fourth</B>
</A>

How would I reference the second node based on its 'second' value.
 
//A/B[text()='second']
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top