cast-content-type 022 (AB)

Tests casting to xml raises XD0049 if text document is not well-formed.

Test is expected to fail with error code err:XD0049.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" name="pipeline" version="3.0">
   <p:output port="result"/>
   <p:cast-content-type content-type="application/xml"
                        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'}"><document ></p:inline>
      </p:with-input>
   </p:cast-content-type>
</p:declare-step>

Revision history

27 Dec 2019, Achim Berndzen
Initial tests for the new iteration of p:cast-content-type