cast-content-type 025 (AB)

Tests casting from an invalid text document to a JSON document raises XD0057.

Test ab-cast-content-type-025.xml is expected to fail with error code err:XD0057 [XProc, Core steps].

The pipeline


        <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
            <p:output port="result"/>
            
            <p:cast-content-type content-type="application/json" name="caster">
                <p:with-input>
                    <p:inline content-type="text/plain" document-properties="map{'base-uri' : 'http://xproc-test.org',                         'serialization' : map{'method' : 'text'},                         'additional' : 'property'}">{{ "key"  "value" }}</p:inline>
                </p:with-input>
            </p:cast-content-type>
        </p:declare-step>
    
MorganaXProc passing XML Calabash failing

Revision history

27 Dec 2019, Achim Berndzen

Initial tests for the new iteration of p:cast-content-type