Variable declaration 021a (strict)

Checks XD0008 is raised if more than one document appears as connection of p:variable and @connection is missing even if the variable is not used.

Test ab-variable-021a-strict.xml is expected to fail with error code err:XD0001.

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:variable name="var" select="count(.)">
      <doc/>
      <doc/>
   </p:variable>
   <p:identity>
      <p:with-input>
         <doc/>
      </p:with-input>
   </p:identity>
</p:declare-step>
MorganaXProc passing XML Calabash failing

Revision history

12 Dec 2021, Achim Berndzen

Test added.