letex:epubcheck epubcheck
epubcheck/xpl/epubcheck.xpl
Import URI: http://transpect.le-tex.de/epubcheck/xpl/epubcheck.xpl
letex:epubcheck
Description
An implementation of epubcheck to provide it's results as Schematron SVRL.
Usage
Provide the path to the EPUB file with the option epubfile-path
.
Requirements
-
store-debug
SVN:
https://subversion.le-tex.de/common/pubcoach/trunk/xpl/simple-progress-msg.xpl
-
simple-progress-msg
SVN:
https://subversion.le-tex.de/common/xproc-util/store-debug/store-debug.xpl
Visualisation
The pre-creation of this SVG image needs the Graphviz software installed. Please inform your project maintainer.
Input Ports
none
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | Output port:
| Output port: result Provides the result of the epubcheck as Schematron SVRL file |
Options
Name | Documentation | Default |
---|---|---|
epubfile-pathⓇ | Option:
| |
epubcheck-path | Option:
| 'bin/epubcheck-3.0.1.jar' |
svrl-srcpath | Option:
| '/' |
debug | Option:
| 'yes' |
debug-dir-uri | Option:
| 'debug' |
Subpipeline
Step | Inputs | Outputs | Options |
---|---|---|---|
p:variable status-dir-uri Variable:
| concat($debug-dir-uri, '/status') | ||
letex:simple-progress-msg msg-epubcheck-start |
| result | file = 'epubcheck-start.txt' status-dir-uri = $status-dir-uri |
p:exec execute-epubcheck |
| result | result-is-xml = 'false' errors-is-xml = 'false' wrap-error-lines = 'true' wrap-result-lines = 'true' command = 'java' args = concat('-jar ', replace( $epubcheck-path, '^file:/+(([a-z]:)/)?', '$2/', 'i'), ' ', replace( $epubfile-path, '^file:/+(([a-z]:)/)?', '$2/', 'i') ) |
p:sink d542e176 |
| ||
p:wrap-sequence d542e177 |
| result | wrapper = 'document' wrapper-prefix = 'cx' wrapper-namespace = 'http://xmlcalabash.com/ns/extensions' |
p:add-attribute d542e184 | result | match = '/cx:document' attribute-name = 'epubcheck-path' attribute-value = $epubcheck-path | |
p:add-attribute d542e188 | result | match = '/cx:document' attribute-name = 'epubfile-path' attribute-value = $epubfile-path | |
p:xslt convert-epubcheck-output |
| result | |
letex:store-debug d542e201 |
| result | pipeline-step = 'epubcheck/epubcheck.svrl' active = $debug base-uri = $debug-dir-uri |
letex:simple-progress-msg d542e207 | result | file = 'epubcheck-start.txt' status-dir-uri = $status-dir-uri |