Extracts the contents of a compressed archive file.
<p:declare-step type="cpnz:extract-archive"> <p:input port="source"/> <p:output port="result"/> <p:option name="href" required="true"/> <p:option name="destination" required="true"/> <p:option name="media-type" required="true" /> </p:declare-step>
<!-- ===================================================================== --> <!-- Extract ZIP archive --> <!-- ===================================================================== --> <cpnz:extract-archive name="unzip-archive"> <p:with-option name="href" select="resolve-uri($source-document-uri, $source-base-uri)" /> <p:with-option name="media-type" select="'application/zip'" /> <p:with-option name="destination" select="$temp.dir" /> </cpnz:extract-archive>