relaxng / jing-trang

Schema validation and conversion based on RELAX NG
http://www.thaiopensource.com/relaxng/
Other
228 stars 69 forks source link

ISO Schematron validation does not support include mechanism #258

Open ujay68 opened 4 years ago

ujay68 commented 4 years ago

If you look at https://github.com/relaxng/jing-trang/blob/master/mod/schematron/src/main/com/thaiopensource/validate/schematron/resources/iso-schematron.rnc, the ISO Schematron dialect implemented by Jing seems to be one supporting the include mechanism. However, using an include element in a schema doesn't do anything. The implementing XSLT script https://github.com/relaxng/jing-trang/blob/master/mod/schematron/src/main/com/thaiopensource/validate/schematron/resources/iso-schematron.xsl doesn't processinclude elements in its input file.

georgebina commented 4 years ago

ISO Schematron is not really supported by Jing, see https://github.com/relaxng/jing-trang/issues/23.

ujay68 commented 4 years ago

@georgebina, thanks for the pointer. Would you suggest to use the old "http://www.ascc.net/xml/schematron" schematron version then? Seems to be functionally equivalent as long as you don't (and cannot) use more than the basic features (pattern/rules/assert) anyway.

georgebina commented 4 years ago

Yes, the pre-ISO schematron is supported by Jing and you should be able to use that.