Project

Profile

Help

Bug #4300

closed

Getting warnings using XPathExecutable

Added by Rick Vlaming almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2019-08-26
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

We are doing a saxon:deep-equal via the following statements:

		XPathExecutable xx = xpath.compile("saxon:deep-equal($vmgv:node1, $vmgv:node2, () ,'w?')");


		XPathSelector selector = xx.load();
		selector.setVariable(new QName("urn:us:xpath:var", "node1"), node1);
		selector.setVariable(new QName("urn:us:xpath:var", "node2"), node2);

		XdmAtomicValue deepEqualResult = (XdmAtomicValue) selector.evaluateSingle();

In a unittest warnings are showed in the console when there are differences. How can I get these warnings in my application-code? An errorlistener can be set on a XSLT compiler but not on the XPathCompiler.

Please register to edit this issue

Also available in: Atom PDF