Page 1 of 1

Apply all Schematron Quick Fixes

Posted: Fri Oct 23, 2015 12:41 pm
by xephon
Hi,

is it possible to apply all suggested Schematron quick fixes at once for the current topic? If yes, how? :shock:

Thanks and best regards,
Stefan

Re: Apply all Schematron Quick Fixes

Posted: Fri Oct 23, 2015 3:51 pm
by tavy
Hello Stefan,

You cannot execute all the fixes define in a document. This is because you can have multiple fixes for the same problem and you need to decide which fix should be executed.
This feature should be implemented using the @default-fix attribute which is not supported yet in <oXygen/>. See the Additional Elements Supported in the Schematron Quick Fixes section from our user manual.

Each assert/report element can have a @default-fix attribute, and there should be an action that will execute all default fixes. The fixes will be executed in document order and the developer of the fixes needs to make sure that the execution of a fix will not affect the execution of the other default fixes.

Best Regards,
Octavian

Re: Apply all Schematron Quick Fixes

Posted: Tue Oct 27, 2015 5:24 pm
by xephon
Hello Octavian,

OK, thanks for this information.

Best Regards,
Stefan

Re: Apply all Schematron Quick Fixes

Posted: Sat Oct 31, 2015 11:10 am
by Patrik
Hi Stefan,

a workaround might be to provide a special quick fix to deal with multiple errors.

For instance in my framework I have a schematron rule checking for missing @id attributes. Now I provide two quick fixes for this: One to add the @id for the current element and another one to add all missing @id attributes in the current file...

Patrik