-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p:unarchive #4
Comments
One question and one remark: |
Agree, let's replace |
|
May be we should replace the name "file" with "extract-only" and apply the new globbing feature also inside zips. |
There is now a skeleton unarchive step with PR #55. This needs to be discussed and enhanced. |
Overtaken by events; now part of the steps spec. |
p:unarchive
is a step to extract primarily zip archives.The option
href
is considered mandatory and specifies an URI or path to the zip file.The file option, if specified, must be the path to a file in the archive. If this option is set, only the file is extracted.
The option
list-only
is not required and expects the valuestrue
andfalse
(default). If this option is set to true, theresult
output is empty (e.g. no files are extracted) and thefile-list
output port provides just an XML list of the files in the archive.The option parameters expects a map with additional implementation-defined paramters, e.g. for passing a password to unencrypt an archive.
In contrast to pxp:unzip,
p:unarchive
should allow to extract an archive at once. In this sense, theresult
output port should provide a sequence of documents.Zip should be specified as default format. The support of other compression formats is not mandatory, but the XProc processor might implement these. However, the use of another compression format should be stated with the
format
option.The
file-list
port provides always an XML document which specifies the contents of the Zip file.The
report
port gives either no result or ac:errors
document.The text was updated successfully, but these errors were encountered: