tr:check-styles check-styles
htmlreports/xpl/check-styles.xpl
Import URI: http://transpect.io/htmlreports/xpl/check-styles.xpl
Input Ports
Name | Documentation | Connections |
---|---|---|
sourceⓅ | ||
html-in | ||
parametersⓅ |
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | ||
doc-and-template-styles | ||
reportⓈ | ||
schemaⓈ | ||
htmlreportⓈ | Please note that the HTML report will not reflect the differentiated styles. It will only do so if the report is rendered by a subsequent step. This is because the svrl in the output will be patched after the tr:validate-with-schematron step. |
Options
Name | Documentation | Default |
---|---|---|
debug | 'no' | |
debug-dir-uri | 'debug' | |
status-dir-uri | resolve-uri('status') | |
active | 'true' | |
cssa | Name of the CSSa file with the style definitions (for load-cascaded). | 'styles/simple-template.cssa.xml' |
differentiate-by-style | This option will create a distinct error class for each missing style name. In order to use this option, you need to create a <span class="style-name"> in your schematron rule in your adaption’s styles.sch.xml, like this:
| 'false' |
Subpipeline
Step | Inputs | Outputs | Options | ||
---|---|---|---|---|---|
tr:simple-progress-msg start-msg |
| result | file = 'check-styles-start.txt' status-dir-uri = $status-dir-uri | ||
tr:load-cascaded template-styles |
| result | filename = $cssa debug = $debug debug-dir-uri = $debug-dir-uri | ||
p:wrap-sequence doc-and-template-styles |
| result | wrapper = 'tr:doc-and-template-styles' | ||
tr:store-debug d155e100 |
| result | pipeline-step = 'styles/doc-and-template-styles' active = $debug base-uri = $debug-dir-uri | ||
| result | active = $active debug = $debug debug-dir-uri = $debug-dir-uri status-dir-uri = $status-dir-uri | |||
p:sink d155e133 | |||||
p:split-sequence d155e134 tr:validate-with-schematron may produce multiple reports. We know that we put in only one document, so we only select the first report. | matched | initial-only = 'true' test = 'true()' | |||
p:choose potentially-differentiate-by-style | |||||
$differentiate-by-style = 'true' | |||||
p:xslt add-style-names-to-error-codes |
| result | |||
p:otherwise | |||||
p:identity d155e179 | result | ||||
tr:simple-progress-msg success-msg |
| result | file = 'check-styles-success.txt' status-dir-uri = $status-dir-uri | ||
p:sink d155e201 |
|