[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Passing Parameters to xsl:sort

Subject: Re: Passing Parameters to xsl:sort
From: "Fr\id\iric SCHWEBEL" <schwebel@xxxxxxxxxxxxxxxx>
Date: Wed, 25 Apr 2001 17:28:17 +0200
xsl sort order as parameter
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.