This Schematron Quick Fix is intended to help with adding id and role attributes to assert and report elements in a Schematron.
To use this quick fix create a validation scenario in oXygen that uses this Schematron.
The validation scenario configuration might look something like this:
Apply the validation scenario to validate any Schematron.
Using the check-id phase,
each assert or report element that is missing an id attribute will be flagged.
Click on each flagged element and use the quick fix to insert an id attribute.
The generated ID will be based on a running number and will use the nearest ancestor ID if there is one.
Using the check-role phase,
each assert or report element that is missing a role attribute will be flagged.
Click on each flagged element and use the quick fix to insert a role attribute to
make the result of the test be an 'error', 'warn', or 'info'.
should have an id attribute.
Add id attribute
should have a role attribute.
Add role 'error'
Add role 'warn'
Add role 'info'