tr:validate-with-rng validate-with-rng
htmlreports/xpl/validate-with-rng.xpl
Import URI: http://transpect.io/htmlreports/xpl/validate-with-rng.xpl
This step validates an XML document with a RelaxNG schema and provides the validation results as schematron report. The source XML document is also the primary output. The report output port provides the schematron report.
Input Ports
Name | Documentation | Connections |
---|---|---|
sourceⓅ | The source port expects the xml document to be validated. Prior to validation, @srcpath attributes (and /*/@source-dir-uri) will be removed if $remove-srcpaths is true (default). | |
schema | A RelaxNG-XML-schema is expected to arrive at the schema port. |
Output Ports
Name | Documentation | Connections |
---|---|---|
reportⓈ | The schematron document. | |
resultⓅ | The source XML file |
Options
Name | Documentation | Default |
---|---|---|
debug | 'yes' | |
debug-dir-uri | 'debug' | |
status-dir-uri | 'status' | |
remove-srcpaths | The effect of this option being true is: remove @srcpath and /*/@source-dir-uri from the source document prior to validation, but use the unaltered source document for looking up the closest @srcpaths for each validation error. This should be set to false for validation of Hub XML and other schemas in which @srcpath and /*/@source-dir-uri are legal. | 'true' |
Subpipeline
Step | Inputs | Outputs | Options |
---|---|---|---|
tr:validate-with-rng-PI rng2pi |
| result | debug = $debug debug-dir-uri = $debug-dir-uri status-dir-uri = $status-dir-uri remove-srcpaths = $remove-srcpaths |
tr:store-debug d200e55 | result | pipeline-step = concat('rngvalid/', /*/local-name(), '/with-PIs_2') active = $debug base-uri = $debug-dir-uri | |
tr:errorPI2svrl errorPI2svrl | result | severity = 'error' debug = $debug debug-dir-uri = $debug-dir-uri status-dir-uri = $status-dir-uri |