tr:epubcheck-idpf epubcheck
epubcheck-idpf/xpl/epubcheck.xpl
Import URI: http://transpect.io/epubcheck-idpf/xpl/epubcheck.xpl
tr: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
.
Input Ports
none
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | Output port:
|
Options
Name | Documentation | Default |
---|---|---|
epubfile-pathⓇ | Option:
| |
epubcheck-version | Option:
| '4.0.1' |
svrl-srcpath | Option:
| 'BC_orphans' |
debug | Option:
| 'yes' |
debug-dir-uri | Option:
| 'debug' |
status-dir-uri | Option:
| 'status' |
Subpipeline
Step | Inputs | Outputs | Options | |
---|---|---|---|---|
p:variable epubcheck-path | concat('http://transpect.io/epubcheck-idpf/', ($epubcheck-version[normalize-space()], '4.0.1')[1],'/bin/epubcheck.jar') | |||
tr:simple-progress-msg msg-epubcheck-start |
| result | file = 'epubcheck-start.txt' status-dir-uri = $status-dir-uri | |
cx:message d240e138 |
| result | message = '[info] epubcheck path: ', $epubcheck-path | |
tr:file-uri jar-file |
| result | filename = $epubcheck-path | |
tr:file-uri epub-file |
| result | filename = $epubfile-path | |
p:group do-check | ||||
p:variable jar | /*/@os-path | |||
p:variable epub | /*/@os-path | |||
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 ', $jar, ' ', $epub) | |
p:sink d240e194 |
| |||
p:wrap-sequence d240e196 |
| result | wrapper = 'document' wrapper-prefix = 'cx' wrapper-namespace = 'http://xmlcalabash.com/ns/extensions' | |
p:add-attribute d240e205 | result | match = '/cx:document' attribute-name = 'epubcheck-path' attribute-value = $epubcheck-path | ||
p:add-attribute d240e210 | result | match = '/cx:document' attribute-name = 'epubfile-path' attribute-value = $epub | ||
tr:store-debug d240e215 | result | pipeline-step = 'epubcheck/epubcheck.out' active = $debug base-uri = $debug-dir-uri | ||
p:xslt convert-epubcheck-output |
| result | ||
tr:store-debug d240e232 |
| result | pipeline-step = 'epubcheck/epubcheck.svrl' active = $debug base-uri = $debug-dir-uri | |
tr:simple-progress-msg d240e239 |
| result | file = 'epubcheck-start.txt' status-dir-uri = $status-dir-uri |