Schematron ValidationProblemsFilter

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

Schematron ValidationProblemsFilter

Post by josephw »

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 Weichert
Senior Solution Architect
KGU TechPub Services GmbH
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: ... 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 Nadolu
<oXygen/> XML Editor
Post Reply