This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Passing Parameters to xsl:sort
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Passing Parameters to xsl:sort
- From: "Fr\id\iric SCHWEBEL" <schwebel at rfv dot insa-lyon dot fr>
- Date: Wed, 25 Apr 2001 17:28:17 +0200
- References: <23D1CA44E737D2119A6100A0C9D60B7DDD675A@sonusdc2.sonusnet.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
after the select, the XSL processor waits for an XPath expression. And as it
is written on DaveP's excellent FAQ :
XSLT can't build XPath expressions from a variable.
http://www.dpawson.co.uk/xsl/nono.html#d44e9002
So I think it's the reason (but i'm not sure).
Fred
----- Original Message -----
From: "Brucato, Greg" <GBrucato@sonusnet.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, April 25, 2001 5:01 PM
Subject: [xsl] Passing Parameters to xsl:sort
> I am trying to pass a parameter to control the sorting of report output. I
> can pass the parameter to the 'order' attribute, but passing a parameter
to
> the 'select' attribute does not seem to work.
>
> <xsl:param name="order">descending</xsl:param>
> <xsl:param name="sort-value">trunk-group-type</xsl:param>
>
> ...
>
> <xsl:sort select="$sort-value" order="{$order}"/>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list