p:rename-005a (AB)

Tests p:rename

Test ab-rename-005a.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:input port="source"/>
         <p:output port="result"/>
         <p:rename match="element" new-name="baz:foo"/>
MorganaXProc passing XML Calabash passing


port = source


Schematron validation

      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns uri="http://baz.com" prefix="baz"/>
            <s:rule context="/">
               <s:assert test="document">The root element is not 'document'.</s:assert>
               <s:assert test="document/baz:foo">Root element does not have a child Q{http://baz.com}foo</s:assert>

Revision history

18 May 2019, Achim Berndzen

Ported tests for p:rename