Tests p:rename
Test ab-rename-005a.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:input port="source"/>
<p:output port="result"/>
<p:rename xmlns:baz="http://baz.com" match="element" new-name="baz:foo"/>
</p:declare-step>
<document>
<element/>
</document>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns uri="http://baz.com" prefix="baz"/>
<s:pattern>
<s:rule context="/">
<s:assert test="document">The root element is not 'document'.</s:assert>
<s:assert test="document/baz:foo">Root element does not have a child Q{http://baz.com}foo</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Ported tests for p:rename