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

NameDocumentationConnections

source

A c:files document as produced by create-ops.xpl on the files port

meta

Output Ports

NameDocumentationConnections

result

files

Options

NameDocumentationDefault

base-uri

target

'EPUB2'

terminate-on-error

'yes'

use-svg

'yes'

debug

'no'

debug-dir-uri

'debug'

Subpipeline

StepInputsOutputsOptions

p:variable layout

meta on create-opf

(/epub-config/@layout, 'reflowable')[1]

p:xslt generate-opf

source

meta on create-opf

source on create-opf

stylesheet

p:document../xsl/create-opf.xsl

result

letex:store-debug d510e57

source

result on generate-opf

result

pipeline-step = 'epubtools/create-opf/the-opf'

active = $debug

base-uri = $debug-dir-uri

p:store d510e63

source

result on d510e57

result

indent = 'true'

method = 'xml'

omit-xml-declaration = 'false'

href = concat(replace($base-uri, '^(.*[/])+(.*)', '$1'), 'epub/OEBPS/content.opf')

Used by