transpect:validate-with-schematron (in library validate-with-schematron.xpl) validate-with-schematron

Visualisation

The pre-creation of this SVG image needs the Graphviz software installed. Please inform your project maintainer.

Input Ports

NameDocumentationConnections

source

If multiple source documents are given, a report will be created for every document.

This report will be inserted into the single-root document on the report port.

html-in

One or zero documents. If zero, no attempt is made to patch the results into the HTML

parameters

Output Ports

NameDocumentationConnections

result

report

htmlreport

svrl

Options

NameDocumentationDefault

debug

'no'

debug-dir-uri

phase

'#ALL'

active

'true'

schematron-rule-msg

Prints a status message with the Id of the currently fired schematron report or assert.

'no'

Subpipeline

StepInputsOutputsOptions

p:variable status-dir-uri

concat($debug-dir-uri, '/status')

p:choose actually-do-something

$active = ('true', 'yes')

p:parameters consolidate-params

parameters

parameters on validate-with-schematron

result

p:string-replace replace-schematron-family-name-in-start-msg

source

 <c:messages>
   <c:message xml:lang="en">Starting '<c:family>family</c:family>' Schematron checks</c:message>
   <c:message xml:lang="de">Beginne Schematron-Prüfungen der Rubrik '<c:family>family</c:family>'</c:message>
 </c:messages>

result

match = 'c:family'

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

letex:simple-progress-msg start-msg

source

result on replace-schematron-family-name-in-start-msg

msgs

result on replace-schematron-family-name-in-start-msg

result

file = concat('validate-with-schematron_', /c:param-set/c:param[@name eq 'family']/@value,'_start.txt')

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

p:sink d314e141

source

result on start-msg

transpect:assemble-schematron assemble-schematron

paths

result on consolidate-params

debug = $debug

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

schematron-rule-msg = $schematron-rule-msg

p:sink d314e157

source

p:choose validate-if-assembled-has-pattern

//s:pattern

transpect:validate-with-schematron2 pattern-in-assembled

source

source on validate-with-schematron

html-in

html-in on validate-with-schematron

schema

result on assemble-schematron

parameters

result on consolidate-params

result

debug = $debug

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

phase = $phase

p:otherwise

p:identity id

source

source on validate-with-schematron

result

p:string-replace replace-schematron-family-name-in-success-msg

source

 <c:messages>
   <c:message xml:lang="en">Successfully finished '<c:family>family</c:family>' Schematron checks</c:message>
   <c:message xml:lang="de">Schematron-Prüfungen der Rubrik '<c:family>family</c:family>' erfolgreich abgeschlossen</c:message>
 </c:messages>

result

match = 'c:family'

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

letex:simple-progress-msg success-msg

source

result on replace-schematron-family-name-in-success-msg

msgs

result on replace-schematron-family-name-in-success-msg

result

file = concat('validate-with-schematron_', /c:param-set/c:param[@name eq 'family']/@value,'_success.txt')

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

p:sink d314e270

source

result on success-msg

p:otherwise

p:identity id

source

source on validate-with-schematron

result