I have an element that may not exist in certain documents, element ea.
I have an element that will exist in certain documents, element ec.
(
xdmp:estimate(fn:doc()[(.//ea) and (.//ec = "J")]),
xdmp:estimate(fn:doc()[(not(.//ea)) and (.//ec = "J")]),
xdmp:estimate(fn:doc()[(.//ec = "J")])
)
The second XPATH will not return the difference between the 1st and the last.
I know it is the NOT function. It has special behavior when dealing with
existence tests.
So how would I go about testing that element ea does not exist in a document,
yet element ec does?
XPATH preferred, cts functions fine too! (or both :) )
THX!
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general