Test for p:insert 010 (AB)

Tests p:insert doc as last child of an empty root.

Test ab-insert-010.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:insert match="doc" position="last-child">
                <p:with-input><doc xmlns=""/></p:with-input>
                <p:with-input port="insertion">
                    <p xmlns="">New paragraph.</p>
                </p:with-input>            
            </p:insert>
        </p:declare-step>
            
    
MorganaXProc passing XML Calabash failing

Schematron validation


        <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
            <s:pattern>
                <s:rule context="/">
                    <s:assert test="doc">The root element is not 'doc'.</s:assert>
                    <s:assert test="doc/p">The root element does not have a child 'p'.</s:assert>
                    <s:assert test="doc/p/text()='New paragraph.'">The text of doc/p is not 'New paragraph.'</s:assert>
                </s:rule>
            </s:pattern>
        </s:schema>
    

Revision history

22 Mar 2019, Achim Berndzen

Ported tests from 1.0 test suite