xsl-list
[Top] [All Lists]

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

2005-06-15 12:47:01
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.

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