xsl-list
[Top] [All Lists]

How to select either ElementA -OR- ElementB in an axis

2005-06-15 11:35:16
Hello,
This has me stumped.  I want to do something simple like this (I'll
keep it short as I think it's self-explanatory)....

<xsl:variable name="myvar" select="ancestor::(ElementA or ElementB)/foo/bar"/>

... where either ElementA or ElementB is selected, whichever is first.

Any ideas?   I'm using XPath 2.0

Thanks!

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