And regarding https://github.com/Schematron/schematron-enhancement-proposals/issues/64: You already can use attribute value templates, next version of SchXslt2 provides a global variable schxslt:phase
to the validation stylesheet.
And regarding https://github.com/Schematron/schematron-enhancement-proposals/issues/64: You already can use attribute value templates, next version of SchXslt2 provides a global variable schxslt:phase
to the validation stylesheet.
The next version of SchXslt2 will support a processing instruction schxslt.declare-param to aid writing ISO Schematron w/ abstract patterns. I chose a processing instruction over reusing the sch:param element to not interfere with the current standardisation process.
If the processing instruction is used, the transpiler terminates with an error if a declared parameter is not provided, and if a provided parameter ist not declared.
https://git.sr.ht/~dmaus/schxslt2/tree/main/item/src/main/resources/content/transpile.xsl#L186
#schematron #schxslt