epub:create-opf create-opf
epubtools/modules/create-opf/xpl/create-opf.xpl
Import URI: http://transpect.le-tex.de/epubtools/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:xslt generate-opf |
| result | |
letex:store-debug d142e61 |
| result | pipeline-step = 'epubtools/create-opf/the-opf' active = $debug base-uri = $debug-dir-uri |
p:store d142e67 | result | indent = 'true' method = 'xml' omit-xml-declaration = 'false' href = concat(replace($base-uri, '^(.*[/])+(.*)', '$1'), 'epub/OEBPS/content.opf') |