xsl-list
[Top] [All Lists]

Re: [xsl] XPath shorthand

2012-08-21 08:35:42
On 21 August 2012 14:19, Ihe Onwuka 
<ihe(_dot_)onwuka(_at_)googlemail(_dot_)com> wrote:
what is shorthand for "folllowing-sibling::A | following-sibling::B
.........following-sibling::Z"

Anything better than  "following-sibling::*[self::A||self::B...|self::C]  ?


select="(A, B, C)[. >> current()]"

...not better, just different.  How you did it is pretty much it,
although you could use , instead of | to prevent the document sort and
de-dupe if its not needed.




-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>