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

Passing sort criteria as a paramter

Subject: Passing sort criteria as a paramter
From: "David B. Bitton" <david@xxxxxxxxxxxxxx>
Date: Thu, 24 Jan 2002 16:33:00 -0500
 Passing sort criteria as a paramter
I have been passing the sort element name into my xsl by way of a
parameter.  I then do this:

<xsl:sort select="*[local-name() = $sortby"]">

and this works great.  Now, I want to qualify the element name, such
that the select attribute would read 

select="Amount[../IsCredit=1]"

if I wanted to just park the select attribute at one element.  

Now, how can I pass the above predicated element name into the
stylesheet?  If I need to seperate the predicate from the element name,
this would not be a problem, as I could use substring-before, or any of
the string handling XPath functions.  Jenni, want a go at this?

--

David B. Bitton
david@xxxxxxxxxxxxxx

Diversa ab illis virtute valemus. 


 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.