This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: sorting with the value from a tag


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]