Schematron: Replace on root element not working
Posted: Thu Feb 18, 2016 9:19 am
Applying this (simplified) quick fix causes an error in oXygen:
error:
Patrik
Code: Select all
<sqf:fix id="test">
<sqf:description>
<sqf:title>replace root element</sqf:title>
</sqf:description>
<sqf:replace match="/*" select="."/>
</sqf:fix>
Code: Select all
Cannot perform the quick fix: Cannot execute operation: Delete Node. Cause: ro.sync.xml.xpath.g: XPath failed due to: Finding root of tree: the context item is absent