|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Passing Parameters to xsl:sort
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@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, April 25, 2001 5:01 PM
Subject: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








