"kj" <so***@987jk.com> wrote in message
news:c5**********@reader1.panix.com...
In <c5***********@ID-152440.news.uni-berlin.de> "Dimitre Novatchev [MVP
XML]" <dn********@yahoo.com> writes:Use:
//*[self::foo or self::bar]
Boy, you're fast!!!
Right after I posted it occurred to me to search for one more thing
in the recommendations page, namely the string "'|'" (minus the
enclosing double-quotes). I found about "UnionExpr"; so this also
works:
//foo|//bar
Yes, but I understood your question as if you wanted the "//" abbreviation
to be used only once.
Also, do note that some not smart XPath engines will evaluate:
//*[self::foo or self::bar]
twice as fast as;
//foo | //bar
Cheers,
Dimitre Novatchev [XML MVP],
FXSL developer, XML Insider,
http://fxsl.sourceforge.net/ -- the home of FXSL
Resume:
http://fxsl.sf.net/DNovatchev/Resume/Res.html