Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Spring in Action this week in the Spring 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
Author

XSLT select in for-each question

Ben Klug
Ranch Hand

Joined: Jan 28, 2002
Posts: 45
Hello,

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?
thanks
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.
Thanks.


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSLT select in for-each question