RE: Sort Problem

Subject: RE: Sort Problem
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 23 Jun 2000 16:25:32 +0100
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


Current Thread