: 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
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
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
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