This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XSLT select in for-each question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT select in for-each question" Watch "XSLT select in for-each question" New topic

XSLT select in for-each question

Ben Klug
Ranch Hand

Joined: Jan 28, 2002
Posts: 45

I have a <for-each> loop where I select the node set with a key. This works fine, but I need to do the select with two keys.

is there a way, to do something like that?

<for-each select="key('key1'..) and key('key2'..)">

pseudo-code: select nodes where email==value and status==value2

Any Idea?
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Did you try the for-each stmt that you mentioned with two key statements ?
If so did it work or not ?
I am trying to understand the issue with what you mentioned here.

Let us know.

Take a Minute, Donate an Hour, Change a Life
subject: XSLT select in for-each question