p:try-007

Tests XS0064 is raised if p:catch without @code is not the last.

Test ab-try-007.xml is expected to fail with error code err:XS0064.

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:try>
      <p:identity>
         <p:with-input>
            <doc/>
         </p:with-input>
      </p:identity>
      <p:catch>
         <p:identity>
            <p:with-input>
               <doc/>
            </p:with-input>
         </p:identity>
      </p:catch>
      <p:catch code="some-error">
         <p:identity>
            <p:with-input>
               <doc/>
            </p:with-input>
         </p:identity>
      </p:catch>
   </p:try>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

31 Oct 2018, Achim Berndzen

Initial test