David Maus
David Maus
Reproduce: Remove Saxon from CLASSPATH and run the tests. See error one and two in https://github.com/schxslt/schxslt/issues/96
See first error in https://github.com/schxslt/schxslt/issues/96
This might be a way to improve on the XSLT 1.0 compiler and/or validation stylesheet.
The SchXslt API defines a function that is called with a URI and returns the document. This way one could for example validate a CSV file by first deserializing it...
Cf. https://github.com/Schematron/schematron/issues/37 Provide an attribute @schxslt:on-failed-assert with the possible values of - ```continue``` (default) Continue validation - ```terminate``` Terminate validation - ```skip-descendants``` Don't validate the descendants of the context node...
Instead of an option define an API template ```schxslt-api:handle-foreign``` that is called with the foreign element or attribute and ignores them by default.
> A simple-conformance implementation shall be able to report for any XML document that its structure does not conform to that of a valid Schematron schema.
Such a compiler would create a stylesheet that does not conform to the ISO. Namely 6.5, sentence 5: "A rule element acts as an if-then-else statement in each pattern."