tr:validate-with-schematron (in library validate-with-schematron.xpl) validate-with-schematron
Input Ports
Name | Documentation | Connections |
---|---|---|
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
Name | Documentation | Connections |
---|---|---|
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
Name | Documentation | Default |
---|---|---|
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
Step | Inputs | Outputs | Options | ||||
---|---|---|---|---|---|---|---|
p:choose actually-do-something | |||||||
$active = ('true', 'yes') | |||||||
p:parameters consolidate-params |
| result | |||||
p:string-replace replace-schematron-family-name-in-start-msg |
| result | match = 'c:family' replace = concat('''', /c:param-set/c:param[@name eq 'family']/@value, '''') | ||||
tr:simple-progress-msg 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 | |||||||
tr:assemble-schematron assemble-schematron |
| debug = $debug debug-dir-uri = $debug-dir-uri schematron-rule-msg = $schematron-rule-msg | |||||
p:sink d158e164 |
| ||||||
p:choose validate-if-assembled-has-pattern | |||||||
//s:pattern | |||||||
tr:validate-with-schematron2 pattern-in-assembled |
| result | debug = $debug debug-dir-uri = $debug-dir-uri status-dir-uri = $status-dir-uri phase = $phase | ||||
p:otherwise | |||||||
p:identity id |
| result | |||||
p:sink d158e229 |
| ||||||
p:string-replace replace-schematron-family-name-in-success-msg |
| result | match = 'c:family' replace = concat('''', /c:param-set/c:param[@name eq 'family']/@value, '''') | ||||
tr:simple-progress-msg 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 |
| ||||||
p:otherwise | |||||||
p:identity id |
| result |