- Creates Schematron Quick Fixes.
- Prerequisite:
@xml:lang
of DITA Topic must match
@language
of <termNotation>
.
<sch:pattern id="truck-d35e134">
<sch:rule context="text()">
<sch:report test="contains(/*/@xml:lang, 'en-GB') and contains(., 'truck')"
role="warning"
sqf:fix="sqfGroupTruckd35e134">The term 'truck' is not allowed.</sch:report>
<sqf:group id="sqfGroupTruckd35e134">
<sqf:fix id="termTruckd35e1284">
<sqf:description>
<sqf:title>Replace with an allowed term: 'lorry'</sqf:title>
<sqf:p>A truck is a motor vehicle designed to transport cargo.</sqf:p>
</sqf:description>
<sqf:stringReplace regex="truck">lorry</sqf:stringReplace>
</sqf:fix>
</sqf:group>
</sch:rule>
</sch:pattern>