tr:patch-svrl patch-svrl
htmlreports/xpl/patch-svrl.xpl
Import URI: patch-svrl.xpl
This step patches error report(s) into an HTML document and provide an HTML report.
Input Ports
Name | Documentation | Connections |
---|---|---|
sourceⓅ | An XML document with srcpath attributes. Typically an XHTML rendering. | |
reportsⓈ | SVRL outputs that carry |
|
paramsⓅ | A parameter set with the top-level element |
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | The HTML report document containing the error messages. | |
secondaryⓈ | messages-grouped-by-type.xml, linked-messages-grouped-by-srcpath.xml for further processing (e.g., list of all message types) |
Options
Name | Documentation | Default |
---|---|---|
debug | 'no' | |
debug-dir-uri | 'debug' | |
status-dir-uri | 'status' | |
max-errors-per-rule | '200' | |
severity-default-name | 'no-role' | |
report-title | '' | |
show-adjusted-srcpath | 'yes' | |
show-step-name | 'yes' | |
discard-epub-schematron-svrl | 'no' | |
suppress-embedding | Space-separated list of tokens. Available tokens are: image video script style audio object #all. The documentation in tr:html-embed-resources could be more up to date. | '' |
Subpipeline
Step | Inputs | Outputs | Options | |
---|---|---|---|---|
tr:simple-progress-msg start-msg |
| result | file = 'patch-svrl-start.txt' status-dir-uri = $status-dir-uri | |
tr:html-embed-resources html-embed-resources-before-delete |
| result | exclude = $suppress-embedding fail-on-error = 'false' debug = $debug | |
p:delete filter-document Just in case that there are blank lines in front of the XHTML -- these will constitute an empty document by themselves. In addition, @xml:base attributes will give a funny link click experience. |
| result | match = '@xml:base' | |
tr:store-debug d161e115 |
| result | pipeline-step = 'htmlreports/filtered' active = $debug base-uri = $debug-dir-uri | |
p:sink d161e121 | ||||
p:wrap-sequence reports |
| result | wrapper = 'c:reports' | |
p:xslt reorder-messages-by-category This XSLT will regroup the messages using a span in the asserts/reports. The span's class used to regroup can be defined as te content of param name 'rule-category-span-class' in the parameter set. (For example ina project specific transpect-conf.xml) The span's content will appear as a heading in the html report. If it isn't defined or no such spans occur the reports document will be reproduced. If not every assert/report has a span with that class the original rule-family is used. |
| result | ||
tr:store-debug d161e146 |
| result | pipeline-step = 'htmlreports/reports-regrouped' active = $debug base-uri = $debug-dir-uri | |
p:sink d161e152 | ||||
tr:load-cascaded load-template |
| result | filename = 'htmlreports/template/template.html' fallback = resolve-uri('../template/template.html') debug = $debug debug-dir-uri = $debug-dir-uri | |
p:sink d161e166 |
| |||
tr:store-debug debug-load-template |
| result | pipeline-step = 'htmlreports/template-loaded' extension = 'html' active = $debug base-uri = $debug-dir-uri | |
p:insert inject-body |
| result | match = '//html:div[@id eq 'tr-content']' position = 'first-child' | |
p:insert create-element-for-orphaned-messages |
| result | match = '//html:div[@id eq 'tr-content']' position = 'first-child' | |
p:insert inject-head |
| result | match = '/html:html/html:head' position = 'first-child' | |
tr:store-debug d161e205 |
| result | pipeline-step = 'htmlreports/template-injected' extension = 'html' active = $debug base-uri = $debug-dir-uri | |
tr:html-embed-resources html-embed-resources | result | fail-on-error = 'false' exclude = $suppress-embedding debug = $debug | ||
tr:store-debug d161e223 |
| result | pipeline-step = 'htmlreports/template-with-data-uris' extension = 'html' active = $debug base-uri = $debug-dir-uri | |
p:sink d161e229 | ||||
tr:store-debug d161e230 | result | pipeline-step = 'htmlreports/reports' active = $debug base-uri = $debug-dir-uri | ||
p:sink d161e241 | ||||
tr:load-cascaded load-svrl2xsl |
| result | filename = 'htmlreports/svrl2xsl.xsl' fallback = 'http://transpect.io/htmlreports/xsl/svrl2xsl.xsl' debug = $debug debug-dir-uri = $debug-dir-uri | |
p:sink d161e253 |
| |||
p:xslt create-patch-xsl |
| result | ||
tr:store-debug d161e293 |
| result | pipeline-step = 'htmlreports/patch-svrl' extension = 'xsl' active = $debug base-uri = $debug-dir-uri | |
p:sink d161e299 | ||||
p:for-each d161e300 | ||||
tr:store-debug d161e307 | result | pipeline-step = concat('htmlreports', replace(base-uri(), '^.+(/.+?).xml', '$1')) active = $debug base-uri = $debug-dir-uri | ||
p:sink d161e316 | ||||
p:xslt create-fallback |
| result | initial-mode = 'create-fallback' | |
tr:store-debug d161e335 |
| result | pipeline-step = 'htmlreports/1.create-fallback' extension = 'xhtml' active = $debug base-uri = $debug-dir-uri | |
p:xslt patch |
| result | ||
tr:store-debug d161e353 | result | pipeline-step = 'htmlreports/2.patch-main' extension = 'xhtml' active = $debug base-uri = $debug-dir-uri | ||
p:xslt remove-fallback |
| result | initial-mode = 'remove-fallback' | |
tr:store-debug d161e371 |
| result | pipeline-step = 'htmlreports/3.remove-fallback' extension = 'xhtml' active = $debug base-uri = $debug-dir-uri | |
p:sink d161e377 | ||||
p:identity messages-grouped-by-type |
| result | ||
p:xslt create-success-messages |
| result | ||
tr:simple-progress-msg success-msg |
| result | file = 'patch-svrl-success.txt' status-dir-uri = $status-dir-uri | |
p:sink d161e407 |
|