[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sort Problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|