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

NameDocumentationConnections

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

NameDocumentationConnections

report

The schematron document.

result

The source XML file

Options

NameDocumentationDefault

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

StepInputsOutputsOptions

tr:validate-with-rng-PI rng2pi

source

source on validate-with-rng

schema

schema on validate-with-rng

result

debug = $debug

debug-dir-uri = $debug-dir-uri

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

remove-srcpaths = $remove-srcpaths

tr:store-debug d200e55

source

result on rng2pi

result

pipeline-step = concat('rngvalid/', /*/local-name(), '/with-PIs_2')

active = $debug

base-uri = $debug-dir-uri

tr:errorPI2svrl errorPI2svrl

source

result on d200e55

result

severity = 'error'

debug = $debug

debug-dir-uri = $debug-dir-uri

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