Tests p:namespace-rename renames attributes correctly. (Only attributes)
Test ab-namespace-rename-023.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:input port="source">
<some-document>
<contents a="b"/>
</some-document>
</p:input>
<p:output port="result"/>
<p:namespace-rename to="#some-namespace" apply-to="attributes"/>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns uri="#some-namespace" prefix="bar"/>
<s:pattern>
<s:rule context="/">
<s:assert test="some-document">The root element is not 'Q{}some-document'.</s:assert>
<s:assert test="some-document/contents">There is no child element 'Q{}contents'.</s:assert>
<s:assert test="some-document/contents/@bar:a">There is attribute 'Q{#some-namespace}a' on element 'contents'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added test.