p:choose-042 (AB)

Test XD0005 is raised if sequence appears for p:when/@test and @collection is false()

Test ab-choose-042.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:choose>
                <p:when test="." collection="false">
                    <p:identity>
                        <p:with-input><correct xmlns=""/></p:with-input>
                    </p:identity>
                </p:when>
            </p:choose>
            
        </p:declare-step>
    

Revision history

05 Apr 2019, Achim Berndzen

New tests