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: More arbitrary sorting


I think this kind of sorting is almost impossible without using extensions
functions (which aren't hard to use, though non-portable). This is because
the sort key has to be an XPath expression, and XPath expressions don't
allow conditional logic.

Mike Kay

> I have some data:
> <item>MacBean</item>
> <item>McBarlow</item>
> <item>Re MacBart</item>
> <item>Re McBeanie</item>
> 
> Which needs to be sorted and transformed as follows:
> <item>McBarlow</item>
> <item>Re McBart</item>
> <item>MacBean</item>
> <item>Re McBeanie</item>
> 


 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]