Removing namespace from att is ok as long as other att is in a namespace.
Test ab-namespace-delete-008.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:namespace-delete xmlns:pre="http://att" prefixes="pre">
<p:with-input>
<document xmlns:att="http://att" xmlns:att1="http://att1">
<element att:att="3" att1:att="4"/>
</document>
</p:with-input>
</p:namespace-delete>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="ns" uri="http://att1"/>
<s:pattern>
<s:rule context="/">
<s:assert test="/document">The document root is not 'document'.</s:assert>
<s:assert test="/document/element">Element 'document' does not have child element 'element'.</s:assert>
<s:assert test="/document/element/@att='3'">Element does not have attribute 'att' with '3'.</s:assert>
<s:assert test="/document/element/@ns:att='4'">Element does not have attribute 'att' with '3'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Initial tests for p:namespace-delete