Edit online

Executing Schematron Quick Fixes in Other Documents

You can apply Schematron Quick Fixes over nodes from referenced documents (using XInclude or external entities), and you can access them as nodes in your current document.

Also, you can apply the Quick Fixes over other documents using the doc() function in the value of the @match attribute. For example, you can add a new <Key> element with the value of newVal as the last child in the <KeyList> element from the keylist.xml file using the following operation:
<sqf:add match="doc('keylist.xml')/KeyList" target="Key" node-type="element" 
    select="'newVal'" position="last-child"/>
The keylist.xml file can have a structure similar to this:
<KeyList>
    <Key>one</Key>
    <Key>two</Key>
</KeyList>