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

Subject: Re: [xsl] How to select either ElementA -OR- ElementB in an axis
From: chris <oneskiingfool@xxxxxxxxx>
Date: Wed, 15 Jun 2005 13:47:01 -0600
Thanks everybody for the responses. This solution works for me, as by
"first" I did mean the first one in the axis from the orginating node
toward the document node...

<xsl:value-of select="ancestor::*[self::ElementA|self::ElementB][1]"/>

As usual, thumping myself on the head once someone points out the
obvious to me ;)

Thanks again.

Current Thread