This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XSLT sorting by param / XPATH Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT sorting by param / XPATH Problem" Watch "XSLT sorting by param / XPATH Problem" New topic

XSLT sorting by param / XPATH Problem

Ben Klug
Ranch Hand

Joined: Jan 28, 2002
Posts: 45

I have the this xslt-stylesheet:

this works fine. but when I pass the sortfield "request-information/userid" into the parameter sort1 (or "request-information/username") and replace the sorting tag with <xsl:sort select="{$sort1}" order="ascending" /> it is not working. I found some documentation, but that did not work with my situtaution, because my sortfield is not a child of <for:each / >

How can I solve this?

Thanks so much! B.
[ February 04, 2005: Message edited by: Ben Klug ]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Can't really comment much about the style sheet without knowing the input....

- m

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: XSLT sorting by param / XPATH Problem
It's not a secret anymore!