Passing params to a schematron ?

According to the documentation (https://lxml.de/validation.html#id2), it is possible to pass parameters to a Schematron schema: | To set parameters for steps 1), 2) and 3) dictionaries containing parameters for XSLT can be provided using the keyword arguments include_params, | expand_params or compile_params. Schematron automatically converts these parameters to stylesheet parameters so you need not worry to set | string parameters using quotes or to use XSLT.strparam(). If you ever need to pass an XPath as argument to the XSLT stylesheet you can pass in an | etree.XPath object (see XPath and XSLT with lxml: Stylesheet-parameters for background on this). | | The phase parameter of the compile step is additionally exposed as a keyword argument. If set, it overrides occurrence in compile_params. Note that | isoschematron.Schematron might expose more common parameters as additional keyword args in the future. However, I cannot find a single example anywhere of how to access those parameters *in* the Schematron schema and have tried a lot of methods with no success... :-/ (And yes, I read https://github.com/Schematron/schema/blob/main/schematron.rnc & Co) Can anyone point me to a concrete example ? :-/ G.
participants (1)
-
jrjsmrtn@gmail.com