trdemo:epub-convert trdemo-epub-convert
adaptions/common/xpl/trdemo-epub-convert.xpl
Import URI: trdemo-epub-convert.xpl
The pre-creation of this SVG image needs the Graphviz software installed.
Please inform your project maintainer.
Name | Documentation | Connections |
---|
resultⓅ | |
|
report | |
|
Name | Documentation | Default |
---|
debug | | 'no' |
debug-dir-uri | | resolve-uri('debug') |
local-css | | 'false' |
svrl-srcpath | | '/' |
Step | Inputs | Outputs | Options |
---|
p:variable status-dir-uri
Variable: status-dir-uri
This variable expects an URI. The file (see option above) is saved to this URI.
| | | concat($debug-dir-uri, '/status') |
p:xslt load-meta | - parameters
-
p:empty
- source
-
paths on trdemo-epub-convert
- stylesheet
-
<xsl:stylesheet version="2.0">
<xsl:template match="/c:param-set">
<epub-config format="EPUB3" layout="reflowable">
<types>
<type name="landmarks" heading="Übersicht" hidden="true" types="bodymatter toc"/>
<type name="toc" heading="Inhaltsverzeichnis" file="toc" hidden="true"/>
<type name="cover" heading="Cover" file="cover"/>
<type name="frontmatter" heading="Vorspann"/>
<type name="bodymatter" heading="Hauptteil"/>
<type name="backmatter" heading="Anhang"/>
<type name="glossary" heading="Glossar"/>
<type name="letex:bio" file="author"/>
<type name="letex:about-the-book" file="about-the-book"/>
<type name="abstract" file="about-the-content"/>
<type name="fulltitle" file="title"/>
<type name="copyright-page" file="copyright"/>
<type name="part" file="part"/>
<type name="chapter" file="chapter"/>
<type name="appendix" file="appendix"/>
<type name="glossary" file="glossary"/>
<type name="other-credits" file="other-credits"/>
<type name="letex:popup" file="popup"/>
<type name="letex:advertisement" file="advertisement"/>
</types>
<metadata>
<dc:identifier><xsl:value-of select="c:param[@name eq 'work-basename']/@value"/></dc:identifier>
<dc:title>Mustertitel</dc:title>
<dc:creator><xsl:value-of select="c:param[@name eq 'publisher']/@value"/></dc:creator>
<dc:publisher><xsl:value-of select="c:param[@name eq 'publisher']/@value"/></dc:publisher>
<dc:date><xsl:value-of select="current-date()"/></dc:date>
<dc:language>de</dc:language>
</metadata>
<hierarchy media-type="application/xhtml+xml" max-population="40" max-text-length="200000">
<unconditional-split elt="div" attr="class" attval="white"/>
<unconditional-split elt="h1"/>
<heading elt="h1"/>
<unconditional-split attr="epub:type" attval="letex:bio"/>
<unconditional-split attr="epub:type" attval="cover"/>
</hierarchy>
</epub-config>
</xsl:template>
</xsl:stylesheet>
| result | |
p:sink d437e141 | - source
result on load-meta
| | |
p:parameters params | - parameters
-
paths on trdemo-epub-convert
| result | |
p:add-attribute add-base-uri | - source
-
source on trdemo-epub-convert
| result | match = '/*' attribute-name = 'xml:base' attribute-value = replace(replace(/c:param-set/c:param[@name eq 'file-uri']/@value, '/(docx|xml|hub|idml|zip)/', '/epub/'), '\.(docx|xml|hub|idml|zip)$', '.html') |
letex:store-debug d437e161 | - source
result on add-base-uri
| result | pipeline-step = 'epubtools/pre-epubconvert' active = $debug base-uri = $debug-dir-uri |
epub:convert epub-convert | - source
-
result on add-base-uri
- meta
-
result on load-meta
- conf
-
p:empty
| result | terminate-on-error = 'no' debug = $debug debug-dir-uri = $debug-dir-uri |
letex:epubcheck epubcheck | | result | epubfile-path = replace(/c:param-set/c:param[@name eq 'file']/@value, '^(.+\.)(docx|idml|epub)$', '$1epub', 'i') epubcheck-path = concat(/c:param-set/c:param[@name eq 'common-path']/@value, '../../epubcheck/bin/epubcheck-3.0.1.jar') svrl-srcpath = $svrl-srcpath debug = $debug debug-dir-uri = $debug-dir-uri |
p:sink d437e209 | - source
result on epubcheck
| | |