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.