xsl-list
[Top] [All Lists]

Re: [xsl] Need an XPath expression for: $B is not contained in $A

2018-06-14 16:39:53

"empty($A intersect $B//*)"

XPath 1.0:

"count($B/**) = count($B//* | $A)"

Cheers, Wendell


Getting all the ancestors of $A is likely to be a lot faster than getting all 
the descendants of $B, simply because a node typically has many descendants but 
few ancestors.

Michael Kay
Saxonica
--~----------------------------------------------------------------
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>