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

NameDocumentationConnections

source

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

meta

/epub-config

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 d142e61

source

result on generate-opf

result

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

active = $debug

base-uri = $debug-dir-uri

p:store d142e67

source

result on d142e61

result

indent = 'true'

method = 'xml'

omit-xml-declaration = 'false'

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

Used by