|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Set <xsl:sort> attributes with stylesheet paramete
Hi Richard,
> Why does the following code:
>
> <xsl:sort select="*[local-name()=$sort-by]" order="$sort-order" />
>
> not sort in the order specified by the value $sort-order?
Because you've forgotten to use an attribute value template ({}s) to
indicate that the sort order is the value of the $sort-order variable,
rather than the literal string "$sort-order". Try:
<xsl:sort select="*[local-name() = $sort-by]"
order="{$sort-order}" />
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
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








