Tests p:namespace-rename
Test ab-namespace-rename-011.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:namespace-rename from="http://bar.com" apply-to="elements"/>
</p:declare-step>
<d:doc xmlns:bar="http://bar.com" xmlns:d="http://bar.com" xmlns:x="http://test.com" bar:attr1="val1" x:attr2="val2">
<p/>
<p:p xmlns:p="http://bar.com"/>
</d:doc>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns uri="http://test.com" prefix="x"/>
<s:ns uri="http://bar.com" prefix="bar"/>
<s:pattern>
<s:rule context="/">
<s:assert test="doc">The root element is not 'Q{}doc'.</s:assert>
<s:assert test="*/@x:attr2">Root does not have an attribute Q{http://test.com}attr2.</s:assert>
<s:assert test="*/@bar:attr1">Root does not have an attribute Q{http://bar.com}attr1.</s:assert>
<s:assert test="count(doc/p)=2">Root does not have two children 'p'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Ported tests for p:namespace-rename