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


<p:declare-step type="cx:collection-manager" xmlns:cx="">
     <p:input port="source" sequence="true"/>
     <p:output port="result" sequence="true" primary="false"/>
     <p:option name="href" required="true"/>                       <!-- anyURI -->


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.