2008/6/19 David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:
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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--