collmgr-002

Tests that cx:collection-manager fails if the collection contains duplicate URIs.

Test is expected to fail with error code cxerr:XC0004.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                xmlns:cxerr="http://xmlcalabash.com/ns/error"
                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:import href="https://xmlcalabash.com/ext/library/collection-manager.xpl"/>
   <p:output port="result"/>
   
   <cx:collection-manager source="http://example.com/c1">
      <p:with-input>
         <p:inline>
            <doc/>
         </p:inline>
         <p:inline>
            <doc/>
         </p:inline>
      </p:with-input>
   </cx:collection-manager>
</p:declare-step>

Revision history

23 Jan 2025, Norm Tovey-Walsh
Created test.