Schematron ValidationProblemsFilter

Post here questions and problems related to oXygen frameworks/document types.
josephw
Posts: 7
Joined: Mon Dec 06, 2021 12:25 pm

Schematron ValidationProblemsFilter

Post 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
Joseph Weichert
Senior Solution Architect
KGU TechPub Services GmbH
tavy
Posts: 316
Joined: Thu Jul 01, 2004 12:29 pm

Re: Schematron ValidationProblemsFilter

Post 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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply