Name

cx:collection-manager — Associate documents with a collection URI.

Synopsis

<p:declare-step type="cx:collection-manager" xml:base="file:/projects/github/docs-calabash/src/declarations.xml" xmlns:cx="http://xmlcalabash.com/ns/extensions">
     <p:input port="source" sequence="true"/>
     <p:output port="result" sequence="true" primary="false"/>
     <p:option name="href" required="true"/>                       <!-- anyURI -->
</p:declare-step>

Description

If at least one document appears on the source port, the sequence of documents that appears on that port is associated with the specified collection URI. It may subsequently be accessed in an XSLT 2.0 or XQuery step using the XPath 2.0 collection function. The source documents are copied to the result port.

If an empty sequence of documents appears on the source port, the previously stored collection associated with the specified collation URI is retrieved and that set of documents appears on the result port. If no collection is associated with the URI, the empty sequence is returned.