docx2jats docx2epub

a9s/common/xpl/docx2jats.xpl

Import URI: http://this.transpect.io/a9s/common/xpl/docx2jats.xpl

Input Ports

NameDocumentationConnections

conf

  • Default document: http://this.transpect.io/conf/transpect-conf.xml

Output Ports

NameDocumentationConnections

result

JATS

htmlreport

Options

NameDocumentationDefault

file

clades

''

debug

'yes'

debug-dir-uri

'debug'

status-dir-uri

'status'

Subpipeline

StepInputsOutputsOptions

p:load d9e69

result

href = /tr:conf/@paths-xsl-uri

tr:paths paths

stylesheet

result on d9e69

conf

conf on docx2epub

result

pipeline = 'docx2jats.xpl'

clades = $clades

file = $file

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

p:sink d9e96

source

result on paths

docx2hub:convert docx2hub

source

result

srcpaths = 'yes'

unwrap-tooltip-links = 'yes'

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

docx = $file

css:map-styles map-styles

source

result on docx2hub

paths

result on paths

result

map-name = concat('styles/map-', /c:param-set/c:param[@name eq 'ext']/@value, '.xhtml')

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

tr:check-styles check-styles

html-in

p:empty

parameters

result on paths

result

debug = $debug

debug-dir-uri = $debug-dir-uri

cssa = 'styles/cssa.xml'

differentiate-by-style = 'true'

status-dir-uri = $status-dir-uri

tr:validate-with-schematron sch_flat

html-in

p:empty

parameters

result on paths

result

debug = $debug

debug-dir-uri = $debug-dir-uri

hub:evolve-hub evolve-hub-dyn

paths

result on paths

result

srcpaths = 'yes'

load = 'evolve-hub/driver'

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

tr:validate-with-schematron sch_evolve

html-in

p:empty

parameters

result on paths

result

debug = $debug

debug-dir-uri = $debug-dir-uri

jats:hub2bits hub2jats

paths

result on paths

models

 <c:models>
   <c:model href="http://transpect.io/schema/jats/archiving/1.0/rng/JATS-archivearticle1.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"/>
 </c:models>

result

load = 'hub2jats/hub2jats-driver'

fallback-xsl = 'http://transpect.io/hub2bits/xsl/hub2jats-fallback.xsl'

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

tr:validate-with-schematron sch_jats

html-in

p:empty

parameters

result on paths

result

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:validate-with-rng rng

source

result on sch_jats

schema

p:documenthttp://transpect.io/schema/jats/archiving/1.0/rng/JATS-archivearticle1.rng

result

debug = $debug

debug-dir-uri = $debug-dir-uri

jats:html jats2html

paths

result on paths

source

result on hub2jats

result

css-location = ''

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

p:add-xml-base add-xml-base

source

result on jats2html

result

p:add-attribute html-add-xml-base

source

result on add-xml-base

result

attribute-name = 'xml:base'

match = '/*'

attribute-value = replace(/*/@xml:base, '[.\p{L}]+$', '.xhtml')

tr:store-debug d9e306

source

result on html-add-xml-base

result

pipeline-step = 'html-base'

active = $debug

base-uri = $debug-dir-uri

p:sink d9e314

source

result on d9e306

tr:load-cascaded d9e316

paths

result on paths

result

filename = 'epubtools/epub-config.xml'

debug = $debug

debug-dir-uri = $debug-dir-uri

p:string-replace epub-conf

source

result on d9e316

result

match = '/epub-config/metadata/dc:identifier[1]/text()'

replace = concat('''', /c:param-set/c:param[@name = 'basename']/@value, '''')

p:sink d9e336

source

result on epub-conf

epub:convert epub-convert

source

result on html-add-xml-base

meta

result on epub-conf

conf

p:empty

result

clean-target-dir = 'yes'

terminate-on-error = 'no'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:epubcheck-idpf epubcheck

result

epubfile-path = /*/@os-path

svrl-srcpath = 'BC_orphans'

debug = $debug

debug-dir-uri = $debug-dir-uri

p:sink d9e372

source

result on epubcheck

p:delete html-remove-srcpath

source

html on epub-convert

result

match = '@srcpath'

tr:remove-ns-decl-and-xml-base html-remove-ns

source

result on html-remove-srcpath

result

p:sink d9e384

source

result on html-remove-ns

tr:remove-ns-decl-and-xml-base jats-remove-ns

source

result on hub2jats

result

p:delete jats-remove-srcpath

source

result on jats-remove-ns

result

match = '@srcpath | /*/@source-dir-uri'

p:sink d9e397

source

result on jats-remove-srcpath

tr:patch-svrl patch

source

result on jats2html

reports

report on docx2hub

report on check-styles

report on sch_flat

report on sch_evolve

report on check-styles

report on sch_jats

report on rng

report on epub-convert

result on epubcheck

params

result on paths

result

debug = $debug

debug-dir-uri = $debug-dir-uri

status-dir-uri = $status-dir-uri

p:delete htmlreport-remove-srcpath

source

result on patch

result

match = '@srcpath'

tr:remove-ns-decl-and-xml-base htmlreport-remove-ns

source

result on htmlreport-remove-srcpath

result