Step zip {http://www.daisy.org/ns/pipeline/xproc}

A step for creating ZIP archives.The ZIP archive is identified by the . The (described below) provides the list of files to be processed in the archive. The indicates the nature of the processing: “update”, “freshen”, “create”, or “delete”.If files are added to the archive, indicates how they should be added: “stored” or “deflated”. For deflated files, the identifies the kind of compression: “smallest”, “fastest”, “default”, “huffman”, or “none”.The entries identified by the are processed. The manifest must conform to the following schema:default namespace c="http://www.w3.org/ns/xproc-step" start = zip-manifest zip-manifest = element c:zip-manifest { entry* } entry = element c:entry { attribute name { text } & attribute href { text } & attribute comment { text }? & attribute method { "deflated" | "stored" } & attribute level { "smallest" | "fastest" | "huffman" | "default" | "none" } empty }For example:<zip-manifest xmlns="http://www.w3.org/ns/xproc-step"> <entry name="file1.xml" href="http://example.org/file1.xml" comment="An example file"/> <entry name="path/to/file2.xml" href="http://example.org/file2.xml" method="stored"/> </zip-manifest>If the is “delete”, then file1.xml and path/to/file2.xml will be deleted from the archive. Otherwise, the file that appears on the source port that has the base URI http://example.org/file1.xml will be stored in the archive as file1.xml (using the default method and level), the file that appears on the source port that has the base URI http://example.org/file2.xml will be stored in the archive as path/to/file2.xml without being compressed.A c:zipfile description of the archive content is produced on the result port.
Defined in: http:/daisy.github.io/pipeline/modules/zip-utils/src/main/resources/xml/xproc/java-library.xpl

Input Ports

Port Description
source primary sequence
manifest

Output Ports

Port Description
result primary

Options

Local Name Namespace URI Default Description
href required
compression-method
compression-level
command 'update'
byte-order-mark
cdata-section-elements ''
doctype-public
doctype-system
encoding
escape-uri-attributes 'false'
include-content-type 'true'
indent 'false'
media-type
method 'xml'
normalization-form 'none'
omit-xml-declaration 'true'
standalone 'omit'
undeclare-prefixes
version '1.0'