Skip to content

Instantly share code, notes, and snippets.

@gimsieke
Last active October 17, 2015 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gimsieke/ae28b94e38d867458bc9 to your computer and use it in GitHub Desktop.
Save gimsieke/ae28b94e38d867458bc9 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:pxp="http://exproc.org/proposed/steps"
version="1.0"
name="zip-info"
exclude-inline-prefixes="#all">
<p:documentation>Get zip file info.
Invocation:
java -jar path/to/xmlcalabash-1.1.5-96.jar zip-info.xpl zip=path/to.zip</p:documentation>
<p:output port="result" primary="true"/>
<p:serialization port="result" indent="true"/>
<p:option name="zip">
<p:documentation>file: URI (may also be relative) of Zip file</p:documentation>
</p:option>
<p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>
<pxp:unzip name="unzip">
<p:with-option name="href" select="resolve-uri($zip)"/>
</pxp:unzip>
</p:declare-step>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment