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

Input Ports

NameDocumentationConnections

source

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

html-in

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

parameters

The parameter 'family' is used for looking up and assembling the Schematron files from the cascaded configuration.

Output Ports

NameDocumentationConnections

result

report

htmlreport

schema

A compound Schematron document that was assembled by loading the whole cascade of Schematrons for the given family and merging it so that only the most specific pattern for a given pattern ID wins.

Options

NameDocumentationDefault

debug

'no'

debug-dir-uri

'debug'

status-dir-uri

'status'

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: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, '''')

tr: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 d158e148

source

result on start-msg

tr: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 d158e164

source

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

//s:pattern

tr: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

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

phase = $phase

p:otherwise

p:identity id

source

source on validate-with-schematron

result

p:sink d158e229

source

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, '''')

tr: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 d158e275

source

result on success-msg

p:otherwise

p:identity id

source

source on validate-with-schematron

result

Used by