Tests p:rename for an element does not affect an attribute with the same name.
Test ab-rename-015.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:rename match="a" new-name="b">
<p:with-input>
<a b="42"/>
</p:with-input>
</p:rename>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="b">The root element is not 'b'.</s:assert>
<s:assert test="b/@b">Root element does not have an attribute "b".</s:assert>
<s:assert test="b/@b='42'">Attribute's value is not '42'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Initial commit.