cast-content-type 036 (AB)

Tests that a c:data document decoding raises error, no content-type on c:data.

Test ab-cast-content-type-036.xml is expected to fail with error code err:XC0073.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
   <p:output port="result"/>
   <p:cast-content-type content-type="text/plain">
      <p:with-input>
         <c:data xmlns:c="http://www.w3.org/ns/xproc-step">Q29weSDCqQ==</c:data>
      </p:with-input>
   </p:cast-content-type>
   <p:wrap-sequence wrapper="result"/>
</p:declare-step>

Revision history

02 Feb 2025, Achim Berndzen

Test casting from c:data to Text.