[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:sort with XSLT 2.0 translated to XSLT 1.0
2008/6/19 David Carlisle <davidc@xxxxxxxxx>: > >> What's wrong with: >> >> (@bar | @baz)[1] > > it would sort on (fr each item) either baz or bar with no specification > of which is chosen. Ahh good point - if both are present either could be used, as document order can't be relied on (bad idea anyway) > (@bar|self::*[not(@bar)]/@baz)[1] > > does the job. Or just @bar | @baz[not(../bar)] ? -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|