aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

XSLT sorting by param / XPATH Problem

Ben Klug
Ranch Hand

Joined: Jan 28, 2002
Posts: 45
Hello,

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
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSLT sorting by param / XPATH Problem
 
Similar Threads
Newbie Question---Help?
xsl:- - - - may not be used here ?
move an element to top
different colors to different rows
Keyword xsl:sort may not be used here.