|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Passing Parameters to xsl:sort
I set up the parameter <xsl:param name="sSort" select="'trunk-group-type'"/> then later I use it like this to define sort element as the value passed in by the sSort parameter. <xsl:sort select="*[name()=$sSort]" data-type="text"></xsl:sort> Regards, Jay Gardner -----Original Message----- From: Brucato, Greg [mailto:GBrucato@xxxxxxxxxxxx] Sent: Wednesday, April 25, 2001 10:01 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Passing Parameters to xsl:sort I am trying to pass a parameter to control the sorting of report output. I can pass the parameter to the 'order' attribute, but passing a parameter to the 'select' attribute does not seem to work. <xsl:param name="order">descending</xsl:param> <xsl:param name="sort-value">trunk-group-type</xsl:param> ... <xsl:sort select="$sort-value" order="{$order}"/> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|

Cart








