p:document 041

Its a dynamic error, if @content-type is not valid..

Test ab-p-document041.xml is expected to fail with error code err:XD0079 [Core steps, XProc].

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <p:document content-type="surely-not-correct" href="file.xml"/>
      </p:with-input>
   </p:identity>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

23 Jun 2020, Achim Berndzen

Additional tests for p:document.