Re: XSL-question: sort with parameter

2002-03-27 Thread Leonid Kleiner
: Wednesday, March 27, 2002 6:22 AM Subject: XSL-question: sort with parameter Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the parameter like xsl:sort select=$order-by order=ascending

XSL-question: sort with parameter

2002-03-26 Thread Axel Honfi
Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the parameter like xsl:sort select=$order-by order=ascending/. But with this nothing happens and all other forms I tried also failed. Does anyone know

Re: XSL-question: sort with parameter

2002-03-26 Thread KOZLOV Roman
Hi Axel, You can use something like following: xsl:sort select=child::node()[name()=$order]/ Best regards Roman Axel Honfi wrote: Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the

Re: XSL-question: sort with parameter

2002-03-26 Thread Bartomeu Adrover
It's not a very good solution if you have a lot of values for sort, because you need to put one xsl:if tag for any possible value. ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:parameter name = sort/ xsl:template