[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xsl:param from PHP to html

Subject: Re: Xsl:param from PHP to html
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Apr 2007 16:13:24 +0100
Re:  Xsl:param from PHP to html
> I know I am doing something fundamentally wrong here,

This is a FAQ, $SORTBY is a global parameter so it will have the same
value throught the run so
  <xsl:sort select = "$SORTBY" 
is sorting on an equal value, so no sort at all happens.

XSL variables hold values not unevaluated expressions.
You probably meant to select an element with name equal to teh string
value of $SORTBY, which is

 <xsl:sort select = "*[name()=$SORTBY]"

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.