Closed stefan-jung closed 6 years ago
That is part of the default Schematrons.... Interfering with the output of Saxon and Ant is tricky....
Does passing the parameter [allow-foreign](https://github.com/Schematron/schematron/blob/master/trunk/schematron/code/iso_svrl_for_xslt2.xsl#L188)
to the XSLT processor alleviate this?
@AndrewSales Thanks a lot - that does the trick.
Code snippet to achieve this directly:
final SchematronResourceSCH aRes = ...;
final Map <String, Object> aParams = new HashMap <> ();
aParams.put ("allow-foreign", "true");
aRes.setParameters (aParams);
Now it got more easy to use:
final ISchematronXSLTBasedResource aRes = ...;
aRes.setAllowForeignElements (true);
Usable as of v5.0.2
The Schematron Quickfix elements throw several errors. It would be good, if they would be removed in the normalization step.