p:if-002 (AB)

Test XD0001 is raised, if more than one document appears on the connection for the p:if test expression. (no @collection)

Test 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"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <doc1/>
         <doc2/>
      </p:with-input>
   </p:identity>
   <p:if test=".">
      <p:identity/>
   </p:if>
</p:declare-step>

Revision history

22 Apr 2019, Achim Berndzen
Adapted test to new context item strategy, new error code.
06 Apr 2019, Achim Berndzen
New tests