This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Sort Problem
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Sort Problem
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 23 Jun 2000 16:25:32 +0100
- Reply-To: xsl-list at mulberrytech dot com
This is a FAQ, and has been addressed very recently on this list, take a
look at the archives.
You can't use attribute value templates in the select attribute of xsl:sort,
or in any other attribute that expects an XPath expression.
For a limited range of requirements, the classic solution is
select="*[name()=$sortBy]"
Mike Kay
> I am trying to pass this parameter
> <xsl:param name="sortBy" select="default"/>
> to the sort command
> <xsl:apply-templates select="Supplier">
> <xsl:sort data-type="number" select="{$sortBy}"/>
> </xsl:apply-templates>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list