p:choose-058 (AB)

Tests XS0102 is raised if alternative subpipelines have different primary output ports.

Test ab-choose-058.xml is expected to fail with error code err:XS0102.

The pipeline


        <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
            <p:output port="result"/>
            <p:input port="source" sequence="true"/>
            
            <p:for-each>
                <p:choose>
                    <p:when test="true()">
                        <p:output port="result2" sequence="true"/>
                        <p:identity/>
                    </p:when>
                    <p:otherwise>
                        <p:output port="result" sequence="true"/>
                        <p:identity/>
                    </p:otherwise>
                </p:choose>
            </p:for-each>
        </p:declare-step>
    
MorganaXProc passing XML Calabash passing

Revision history

27 Feb 2020, Achim Berndzen

New tests