xsl-list
[Top] [All Lists]

Re: [xsl] Xsl:param from PHP to html

2007-04-13 08:13:39

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>