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

RE: xsl:sort

Subject: RE: xsl:sort
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 29 Aug 2005 08:25:16 +0100
RE:  xsl:sort
The attributes such as order and data-type are AVTs (attribute value
templates) so you can use an XPath expression enclosed in curly braces.

The select attribute is already an XPath expression, and an XPath expression
can't contain curly braces. So you need to use

select="*[name()=//sort-Field]"

or the xx:evaluate() extension if the key is more than a simple element
name.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Asim Qazi [mailto:qazi@xxxxxxxxxxx] 
> Sent: 29 August 2005 07:39
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl:sort
> 
> Hi All
> 
> i m using
> <xsl:sort order="descending" data-type="text" 
> select="get-users-UserName"/>
> 
> the question is that can i send order,data-type and select 
> attributes in xml
> and use them accordingly ?? like
> 
> <xsl:sort order="{//sort-Order}" data-type="{//sort-DataType}"
> select="{//sort-Field}"/>
> 
> where nodes values would be.
> sort-Order == descending
> sort-DataType == text
> sort-Field == get-users-UserName
> 
> 
> qAZI aSIM.

Current Thread
  • xsl:sort
    • Asim Qazi - 29 Aug 2005 06:39:11 -0000
      • Michael Kay - 29 Aug 2005 07:25:34 -0000 <=

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.