Re: [xsl] XPath shorthand

Subject: Re: [xsl] XPath shorthand
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 21 Aug 2012 14:35:34 +0100
On 21 August 2012 14:19, Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx> 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

Current Thread