Test for p:delete 005 (AB)

Tests root element is correctly deleted.

Test ab-delete-005.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:delete match="html">
                    <html xmlns="">
            <p:wrap-sequence wrapper="wrapper"/>
MorganaXProc passing XML Calabash passing

Schematron validation

        <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
                <s:rule context="/">
                    <s:assert test="/wrapper">Document root is not named 'wrapper'.</s:assert>
                    <s:assert test="count(/wrapper/*)=0">Root 'wrapper' should not have children.</s:assert>

Revision history

22 Mar 2019, Achim Berndzen

Created new test