This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XPath optional node question


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]