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.
Visualisation
The pre-creation of this SVG image needs the Graphviz software installed. Please inform your project maintainer.
Input Ports
Name | Documentation | Connections |
---|---|---|
source | A c:files document as produced by create-ops.xpl on the files port | |
meta |
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 d510e57 |
| result | pipeline-step = 'epubtools/create-opf/the-opf' active = $debug base-uri = $debug-dir-uri |
p:store d510e63 | result | indent = 'true' method = 'xml' omit-xml-declaration = 'false' href = concat(replace($base-uri, '^(.*[/])+(.*)', '$1'), 'epub/OEBPS/content.opf') |