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

Re: <xsl:sort> using param (I've read the old thread,

Subject: Re: <xsl:sort> using param (I've read the old thread, thisisn't the same thing, I promise :P)
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 08 Jun 2002 21:01:01 +0200
sort sortdatatype
Jonathan Furrer wrote:
I'm using a <xsl:param> element globally to dynamically sort based on
elements. This is working well, the problem is along with the sort by
element I alos have other params to identify the data-type and order
attributes of <xsl:sort> the params I'm using for those don't seem to be
getting passed as everything comes ascending, the sort by element is passing
just fine, but the order and data-type aren't...any advice.
...
    <xsl:sort select="*[name()=$sortby]" data-type="$sortdatatype"
order="$sortorder"/>

The attributes data-type and order are string values which take AVTs. You can't supply a XPath expression directly, use <xsl:sort select="*[name()=$sortby]" data-type="{$sortdatatype}" order="{$sortorder}"/> instead.

J.Pietschmann


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.