epub:create-opf create-opf
epubtools/modules/create-opf/xpl/create-opf.xpl
Import URI: ../modules/create-opf/xpl/create-opf.xpl
This step expects a file list of the EPUB content files in this form: <cx:document> <c:file name="OEBPS/chapter01.xhtml"/> </cx:document> It provides the OPF file on the result port. The output of the files port is the file reference of the content.opf but not all file references in the OPF file.
Input Ports
Name | Documentation | Connections |
---|---|---|
source | A cx:document[c:file] document as produced by create-ops.xpl on the files port. | |
meta | /epub-config |
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | ||
files |
Options
Name | Documentation | Default |
---|---|---|
base-uriⓇ | ||
target | 'EPUB2' | |
terminate-on-error | 'yes' | |
use-svg | 'yes' | |
debug | 'no' | |
debug-dir-uri | 'debug' |
Subpipeline
Step | Inputs | Outputs | Options |
---|---|---|---|
p:variable layout | meta on create-opf | (/epub-config/@layout, 'reflowable')[1] | |
p:variable html-subdir-name | meta on create-opf | (/epub-config/@html-subdir-name, '')[1] | |
p:xslt generate-opf |
| result | |
tr:store-debug d282e67 |
| result | pipeline-step = 'epubtools/create-opf/the-opf' active = $debug base-uri = $debug-dir-uri |
p:store d282e73 | result | indent = 'true' method = 'xml' omit-xml-declaration = 'false' href = concat(replace($base-uri, '^(.*[/])+(.*)', '$1'), 'epub/OEBPS/content.opf') |