RE: [xsl] How to define a xsl:sort's order attribute using a variable

Subject: RE: [xsl] How to define a xsl:sort's order attribute using a variable
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 27 Jun 2001 19:23:06 +0100
> I want to sort a list of <person> elements, and define the
> "select" and
> "order" attributes of the xsl:sort element using variables,
> rather than
> hardcoded values.

Take a look in the FAQ.

order is an attribute value template.

select is an expression that gives the sort key, not an expression that
gives an expression that gives the sort key. For simple cases use
select="*[name()=$var]", in more complex cases use saxon:evaluate() or
xalan:evaluate().

Mike Kay
Software AG


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread