p:run-062

Tests p:run: Checks implicit non-primary p:output does not become context-item.

Test ab-p-run-062.xml is expected to fail with error code err:XD0001.

It requires the following features: p-run.

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:run>
      <p:with-input>
         <p:inline>
            <p:declare-step version="3.0">
               <p:output port="result" primary="false" pipe="result@id"/>
               <p:identity name="id">
                  <p:with-input>
                     <result>42</result>
                  </p:with-input>
               </p:identity>
            </p:declare-step>
         </p:inline>
      </p:with-input>
      <p:output port="result" sequence="true"/>
      <p:output port="secondary" sequence="true"/>
   </p:run>
   <p:add-attribute attribute-name="att" attribute-value="{/result}">
      <p:with-input>
         <doc/>
      </p:with-input>
   </p:add-attribute>
</p:declare-step>
MorganaXProc passing XML Calabash failing

Revision history

05 Oct 2022, Achim Berndzen

Modified test to prevent other errors to be reported.

01 Oct 2022, Achim Berndzen

Added tests for p:run