[xsl] How to select either ElementA -OR- ElementB in an axis

Subject: [xsl] How to select either ElementA -OR- ElementB in an axis
From: chris <oneskiingfool@xxxxxxxxx>
Date: Wed, 15 Jun 2005 12:35:16 -0600
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!

Current Thread