Apply all Schematron Quick Fixes

Post here questions and problems related to oXygen frameworks/document types.
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Apply all Schematron Quick Fixes

Post 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
stefan-jung.org – Your DITA/DITA-OT XML consultant
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: Apply all Schematron Quick Fixes

Post 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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Re: Apply all Schematron Quick Fixes

Post by xephon »

Hello Octavian,

OK, thanks for this information.

Best Regards,
Stefan
stefan-jung.org – Your DITA/DITA-OT XML consultant
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Apply all Schematron Quick Fixes

Post 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
Post Reply