Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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
I agree. Here's the link:
subject: XSLT select in for-each question
It's not a secret anymore!