Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XSLT sorting by param / XPATH Problem

 
Ben Klug
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't really comment much about the style sheet without knowing the input....

- m
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!