Name

p:unarchive — The standard p:unarchive step.

Synopsis

The p:unarchive step outputs on its result port specific entries in an archive (for instance from a zip file).

Input portPrimarySequenceContent types
source✔  any 
Output portPrimarySequenceContent types
result✔ ✔ any 
Option nameTypeDefault value
exclude-filterRegularExpression()
formatxs:QName?()
include-filterRegularExpression()
override-content-typesarray(array(xs:string))?()
parametersmap(xs:QName, item()*)?()
relative-toxs:anyURI?()
Declaration
 1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
   |   <p:input port="source"
   |            primary="true"
   |            content-types="any"
 5 |            sequence="false"/>
   |   <p:output port="result"
   |             primary="true"
   |             content-types="any"
   |             sequence="true"/>
10 |   <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
   |             name="include-filter"
   |             as="xs:string*"
   |             e:type="RegularExpression"/>
   |   <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
15 |             name="exclude-filter"
   |             as="xs:string*"
   |             e:type="RegularExpression"/>
   |   <p:option name="format" as="xs:QName?"/>
   |   <p:option name="parameters" as="map(xs:QName, item()*)?"/>
20 |   <p:option name="relative-to" as="xs:anyURI?"/>
   |   <p:option name="override-content-types" as="array(array(xs:string))?"/>
   |</p:declare-step>
Errors
CodeDescription
err:XC0079It is a dynamic error (err:XC0079) if the map parameters contains an entry whose key is defined by the implementation and whose value is not valid for that key.
err:XC0085It is a dynamic error (err:XC0085) if the format of the archive does not match the specified format, cannot be understood, determined and/or processed.
err:XC0120It is a dynamic error (err:XC0120) if the relative-to option is not present and the document on the source port does not have a base URI.
err:XC0147It is a dynamic error (err:XC0147) if a specified value is not a valid XPath regular expression.
err:XD0064It is a dynamic error (err:XD0064) if the option is not a valid URI according to RFC 3986.
Implementation defined features

Description

The p:unarchive step is defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.

Supported formats

The supported formats are 7z, Ar, Arj, Cpio, Jar, Tar, and Zip. For more information, see the p:archive step.