This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XPath optional node question
- To: "XSL-LIST" <xsl-list at mulberrytech dot com>
- Subject: RE: XPath optional node question
- From: "Lynn Monson" <lmonson at flipdog dot com>
- Date: Mon, 4 Dec 2000 13:11:40 -0700
- Reply-To: xsl-list at mulberrytech dot com
> My try for a solution was incorrect -- a straightforward XPath solution
> might not be possible.
If my path is rooted at the document (/foo/...), I thought of the following
(the syntax isn't quite right, but hopefully its clear):
/foo//bar[ !ancestor::*[name()!='foo' and name()!='a' and name()!='b' ]]
But that won't work if my path is a relative one...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list