collmgr-003

Tests that cx:collection-manager fails if an attempt is made to modify a stable collection.

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

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 name="one"
                          source="http://example.com/c1">
      <p:with-input>
         <p:inline>
            <doc/>
         </p:inline>
      </p:with-input>
   </cx:collection-manager>
   <cx:collection-manager source="http://example.com/c1"
                          p:depends="one">
      <p:with-input>
         <p:inline>
            <doc/>
         </p:inline>
      </p:with-input>
   </cx:collection-manager>
</p:declare-step>

Revision history

23 Jan 2025, Norm Tovey-Walsh
Created test.