p:with-option 010 (AB)

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

Test ab-with-option-010.xml 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:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
   <p:output port="result"/>
   <p:add-attribute match="doc1" attribute-name="att">
      <p:with-input>
         <doc1/>
      </p:with-input>
      <p:with-option name="attribute-value" select="/doc" collection="{true()}">
         <doc>value</doc>
      </p:with-option>
   </p:add-attribute>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

26 Aug 2021, Achim Berndzen

New test.