Page 1 of 1

Passing a param to Schematron?

Posted: Wed Aug 23, 2023 6:55 pm
by scottbdr
Is there any way to pass a parameter to Schematron in an Oxygen validation scenario? I know this is probably unconventional however I'm supporting an application that somehow decided to do this in their ph-schematron implementation. The idea is to pass in the name of file associated with the one being validated in order to cross-validate certain values.

Thanks, Scott

Re: Passing a param to Schematron?

Posted: Thu Aug 24, 2023 1:04 pm
by tavy
Hello Scott,

You cannot pass parameters in the Schematron validation scenario. You can only choose the phase to be executed. Find more details in the user manual:
https://www.oxygenxml.com/doc/versions/ ... __settings

Maybe you can use base-uri() function or a Schematron extension that can provide you the name of the file.

Best Regards,
Octavian