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

Re: using parameters in filters?

Subject: Re: using parameters in filters?
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Sun, 25 Feb 2001 08:22:33 +0000
Re:  using parameters in filters?
Hi Mattias,

> ...and of course you couldn't set the order attribute of the sort
> element to a param either, go figure

Actually, you can - you just have to use an attribute value template.
So if you do:

   <xsl:sort select="*[local-name() = $sortby]"
             order="{$sortDirection}" />

then that should give you what you want.  All the attributes on
xsl:sort, aside from 'select', take attribute value templates so that
you can set using parameters/variables.

But yes, until we have an evaluate() function of some sort then it's
fairly difficult to dynamically select *what* the sort sorts on.
             
I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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.