Hi Tom,
The intersect XPath operator works on nodes not values, and as you''ve two sets from different documents they can never intersect. You may use the value-intersect function from the functx library:
http://www.xqueryfunctions.com/xq/functx_value-intersect.html
That one works on values. You can just copy and paste the function definition into your code.
If you want to use the functx XQuery module there is currently a known problem: the NK resolver for Saxon doesn''t support the loading of the plain text files of XQuery modules, i.e. the resolver currently only loads XML resources. In that case, for now, you could switch to XSLT 2.0 where loading the XSLT functx module works fine.
Hope this helps,
Menzo
The intersect XPath operator works on nodes not values, and as you''ve two sets from different documents they can never intersect. You may use the value-intersect function from the functx library:
http://www.xqueryfunctions.com/xq/functx_value-intersect.html
That one works on values. You can just copy and paste the function definition into your code.
If you want to use the functx XQuery module there is currently a known problem: the NK resolver for Saxon doesn''t support the loading of the plain text files of XQuery modules, i.e. the resolver currently only loads XML resources. In that case, for now, you could switch to XSLT 2.0 where loading the XSLT functx module works fine.
Hope this helps,
Menzo