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(_at_)advcomm(_dot_)net]
Sent: 29 August 2005 07:39
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--