In 2.0
test="$A/ancestor::node() intersect $B"
In 1.0
test="count($A/ancestor::node() | $B) = count($A/ancestor::node())"
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Wolfgang Jeltsch [mailto:wolfgang(_at_)jeltsch(_dot_)net]
Sent: 14 September 2006 17:16
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] testing relationships between nodes
Hello,
alas, I cannot see any way to check whether a given node is
an ancestor of a given other node in XPath. How do I do this?
Best wishes,
Wolfgang
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--