Page 1 of 1

Schematron ValidationProblemsFilter

Posted: Fri Jan 14, 2022 3:02 am
by josephw
Hi,
In some cases I need to hide Schematron ValidationProblem from user. I implemented my own ValidationProblemsFilter, but can't get any ID of rule.
For Xerces validation Errors, I can get an ErrorKey, but for Schematron Problems ErrorKey is always null. Is it possible to set ErrorKey in Schematron rules, or get the ID of the rule?

Thanks & Regards,
Joseph

Re: Schematron ValidationProblemsFilter

Posted: Fri Jan 14, 2022 9:42 am
by tavy
Hello Joseph,

Starting with Oxygen version 23.1 we added support to ignore validation problems, maybe you can use our ignore validation problem support. You can read more about this on our website:
https://www.oxygenxml.com/xml_editor/wh ... Validation

Also in this version we added an error key for the Schematron messages, the error key is composed from the Schematron file name and the assert/report ID (e.g. flowers.sch:xrefFormatID). Therefore, in order to have an error key for a Schematon message you need to add an @id attribute on the assert/report element..

Best Regards,
Octavian