This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: sorting with the value from a tag
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>, Marnix van der Ham <marnix at finalist dot com>
- Subject: RE: sorting with the value from a tag
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 11 Oct 2000 09:18:59 +0100
- Reply-To: xsl-list at mulberrytech dot com
This is a FAQ. The select attribute of xsl:sort takes an XPath expression
that evaluates to the sort key, not an XPath expression that evalauates to a
string containing another XPath expression that evaluates to the sort key.
You can sometimes achieve what you want using select="*[name()=$sortkey]",
if you want something more general, Saxon has the saxon:evaluate()
extension.
Mike Kay
>
>
> we are trying to make the sort statement in our XSL generic
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list