Tests that a c:data document is decoded if cast to Text, default encoding.
Test ab-cast-content-type-032.xml is expected to pass.
<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="text/plain">
<p:with-input>
<c:data xmlns:c="http://www.w3.org/ns/xproc-step" content-type="text/plain">Q29weSDCqQ==</c:data>
</p:with-input>
</p:cast-content-type>
<p:wrap-sequence wrapper="result"/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="result">The root element is not 'result'.</s:assert>
<s:assert test="result/text()='Copy ©'">The text is not correctly decoded.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Test casting from c:data to Text.