p:variable-046 (AB)

Test @collection="{XPath-expression}" on p:variable is an error.

Test is expected to fail with error code err:XS0077.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0"
                xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
   <p:output port="result"/>
   <p:variable name="selector" collection="{true()}"
               select="false()" as="xs:boolean">
      <doc/>
   </p:variable>
   <p:identity>
      <p:with-input>
         <doc1/>
      </p:with-input>
   </p:identity>
</p:declare-step>

Revision history

26 Aug 2021, Achim Berndzen
New test.