Apply all Schematron Quick Fixes

Post here questions and problems related to oXygen frameworks/document types.
xephon
Posts: 96
Location: Münster/Germany

Apply all Schematron Quick Fixes

Fri Oct 23, 2015 12:41 pm

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
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki
tavy
Posts: 151

Re: Apply all Schematron Quick Fixes

Fri Oct 23, 2015 3:51 pm

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: 96
Location: Münster/Germany

Re: Apply all Schematron Quick Fixes

Tue Oct 27, 2015 5:24 pm

Hello Octavian,

OK, thanks for this information.

Best Regards,
Stefan
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki
Patrik
Posts: 228
Location: Hamburg/Germany

Re: Apply all Schematron Quick Fixes

Sat Oct 31, 2015 11:10 am

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 1 guest