AB-namespace-delete-008

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.

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         
         <p:namespace-delete prefixes="pre">
            <p:with-input>
               <document xmlns="">
                  <element xmlns:att="http://att" xmlns:att1="http://att1" att:att="3" att1:att="4"/>
               </document>
            </p:with-input>
         </p:namespace-delete>
         
      </p:declare-step>
   
MorganaXProc passing XML Calabash failing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <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>
   

Revision history

05 Oct 2019, Achim Berndzen

Initial tests for p:namespace-delete