p:if-002 (AB)

Test XD0005 is raised, if more than one document appears on the connection for the p:if test expression. (no @collection)

Test ab-if-002.xml is expected to fail with error code err:XD0005.

The pipeline


        <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
            <p:output port="result"/>
            
            <p:identity>
                <p:with-input>
                    <doc1 xmlns=""/>
                    <doc2 xmlns=""/>
                </p:with-input>
            </p:identity>
            
            <p:if test=".">
                <p:identity/>
            </p:if>
            
        </p:declare-step>
    

Revision history

06 Apr 2019, Achim Berndzen

New tests