Defining Schematron Quick Fixes
You can define and customize Schematron Quick Fixes directly in the current Schematron
            file
            or in a separate Schematron file. The Schematron Quick Fixes are an extension of the
            Schematron language and they allow you to define fixes for Schematron error messages.
            You can
            refer the quick fixes from the assert or report elements in
            the values of the sqf:fix attributes.
         
Defining a Schematron Quick Fix
The basics of a Schematron Quick Fix is defined by an ID, name, description, and the operations to be executed.
- ID - Defined by the idattribute from thefixelement and must be unique in the current context. It is used to refer the quick fix from areportorassertelement.
- Name - The name of the quick fix is defined by the titleelement.
- Description - Defined by the text in the paragraphs (p) of thedescriptionelement.
- Operations - The following basic types of operations (elements) are
                     supported:- <sqf:add>Element - To add a new node or fragment in the document.
- <sqf:delete>Element - To remove a node from the document.
- <sqf:replace>Element - To replace a node with another node or fragment.
- <sqf:stringReplace>Element - To replace text content with other text or a fragment.
 
The assertion message that generates the quick fix is added as the
               description of the problem to be fixed. The title is
               presented as the name of the quick fix. The content of the paragraphs (p)
               within the description element are presented in the tooltip message when
               the quick fix is selected. 
            
Additional Elements Supported in the Schematron Quick Fixes
- <sqf:user-entry>
- This element defines a value that must be set manually by the user. For more information, see User Entry SQF Operation.
- <sqf:call-fix>
- This element calls another quick fix within a quick fix. The called quick fix must
                     be defined globally or in the same Schematron rule as the calling quick fix. A calling
                     quick fix adopts the activity elements of the called quick fix and should not include
                     other activity elements. You can also specify which parameters are sent by using the
                     <sqf:with-param>child element.
- <sqf:group>
- Allows you to group multiple quick fixes and refer them from an
                     assertorreportelement.
- <sqf:fixes>
- Is defined globally and contains global fixes and groups of fixes.
- <sqf:keep>
- Used to copy the selected nodes that are specified by the selectattribute.NoteIn Oxygen XML Author plugin the copied nodes cannot be manipulated by the current or other activity elements.
- <sqf:param>
- Defines a parameter for a quick fix. If the parameter is defined as
                     abstractthen thetypeand default value should not be specified and the fix can be called from an abstract pattern that defines this parameter.
Other SQF Notes
Note
sqf:default-fix attribute is ignored in Oxygen XML Author plugin.
               For more details on editing Schematron Quick Fixes, go to: Schematron Quick Fix Specifications
 
          