xsl-list
[Top] [All Lists]

Re: [xsl] Seek an XPath 2.0 expression for checking that each object in a file system has one parent

2016-10-16 18:18:04
every $f in //*  satisfies not(/descendant::*[name()=name($f)][2])

returns false for both your examples as D2 is duplicated in both
cases, you said every object (directory and file) had to have a single
parent. Your sample xpath seemed to be testing something different?

David
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>