epub:zip-package zip-package
epubtools/modules/zip-package/xpl/zip-package.xpl
Import URI: ../modules/zip-package/xpl/zip-package.xpl
This step expects a file manifest as input and creates a zip-package. The file manifest should have been this form:
Input Ports
Name | Documentation | Connections |
---|---|---|
ocf-filerefs | ||
opf-fileref | ||
ops-filerefs | ||
meta |
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | ||
files |
Options
Name | Documentation | Default |
---|---|---|
base-uriⓇ | ||
debug | 'no' | |
debug-dir-uri | 'debug' |
Subpipeline
Step | Inputs | Outputs | Options | |
---|---|---|---|---|
tr:store-debug d286e21 |
| result | pipeline-step = 'epubtools/zip-package/opf-filelist' active = $debug base-uri = $debug-dir-uri | |
p:sink d286e32 | ||||
tr:store-debug d286e33 |
| result | pipeline-step = 'epubtools/zip-package/ops-filelist' active = $debug base-uri = $debug-dir-uri | |
p:sink d286e44 | ||||
tr:store-debug d286e45 |
| result | pipeline-step = 'epubtools/zip-package/ocf-filelist' active = $debug base-uri = $debug-dir-uri | |
p:sink d286e56 | ||||
p:pack d286e57 |
| result | wrapper = 'document' wrapper-prefix = 'cx' wrapper-namespace = 'http://xmlcalabash.com/ns/extensions' | |
p:pack d286e69 |
| result | wrapper = 'document' wrapper-prefix = 'cx' wrapper-namespace = 'http://xmlcalabash.com/ns/extensions' | |
p:filter d286e76 | result | select = '//c:file' | ||
p:wrap-sequence wrap-file-uris | result | wrapper = 'document' wrapper-prefix = 'cx' wrapper-namespace = 'http://xmlcalabash.com/ns/extensions' | ||
tr:store-debug d286e79 |
| result | pipeline-step = 'epubtools/zip-package/merged-filelist' active = $debug base-uri = $debug-dir-uri | |
p:xslt generate-zip-manifest |
| result | ||
tr:store-debug d286e94 |
| result | pipeline-step = 'epubtools/zip-package/zip-manifest' active = $debug base-uri = $debug-dir-uri | |
p:group d286e100 | ||||
p:variable zip-file-uri | meta on zip-package | replace($base-uri, '^(.+/)([^./]+)\.(xhtml|html)$', concat('$1', if (normalize-space(/epub-config/@out-file-basename)) then /epub-config/@out-file-basename else '$2', '.epub')) | ||
cx:zip zip |
| result | command = 'create' href = $zip-file-uri | |
tr:store-debug d286e122 | result | pipeline-step = 'epubtools/zip-package/zip-result' active = $debug base-uri = $debug-dir-uri |