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