tr:validate-with-rng-PI rng2pi
calabash/extensions/transpect/rng-extension/xpl/rng-validate-to-PI.xpl
Import URI: http://transpect.io/calabash-extensions/rng-extension/xpl/rng-validate-to-PI.xpl
Input Ports
Name | Documentation | Connections |
---|---|---|
sourceⓅ | If you want to convert the PIs into SVRL messages for patching at the nearest @srcpath, the source document must contain @srcpath attributes. | |
schema |
Output Ports
Name | Documentation | Connections |
---|---|---|
resultⓅ | ||
report |
Options
Name | Documentation | Default |
---|---|---|
debug | 'no' | |
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 | ||
---|---|---|---|---|---|
p:variable schema-basename | replace(base-uri(/*), '^(.+/)?([^/]+)\.rng', '$2') | ||||
p:string-replace replace-schema-name-in-start-msg |
| result | match = 'c:schema-name' replace = concat('''', $schema-basename, '''') | ||
p:string-replace replace-schema-name-in-success-msg |
| result | match = 'c:schema-name' replace = concat('''', $schema-basename, '''') | ||
tr:simple-progress-msg start-msg | result | file = concat('validate-with-rng-PI_', $schema-basename,'_start.txt') status-dir-uri = $status-dir-uri | |||
p:sink d209e91 | |||||
p:identity d209e92 | result | ||||
p:choose conditionally-strip-srcpath | |||||
$remove-srcpaths = 'true' | |||||
p:delete d209e103 | result | match = '@srcpath | /*/@source-dir-uri' | |||
p:otherwise | |||||
p:identity d209e108 | result | ||||
tr:validate-with-rng validate | result | ||||
p:sink d209e118 | |||||
tr:store-debug d209e119 | result | pipeline-step = concat('rngvalid/', $schema-basename, '/report') active = $debug base-uri = $debug-dir-uri | |||
p:sink d209e133 | |||||
p:xslt generate-patch-xslt |
| result | |||
tr:store-debug d209e151 |
| result | extension = 'xsl' pipeline-step = concat('rngvalid/', $schema-basename, '/patch') active = $debug base-uri = $debug-dir-uri | ||
p:sink d209e159 | |||||
p:xslt create-PIs |
| result | |||
tr:store-debug d209e175 |
| result | pipeline-step = concat('rngvalid/', $schema-basename, '/with-PIs_1') active = $debug base-uri = $debug-dir-uri | ||
tr:simple-progress-msg success-msg |
| result | file = concat('validate-with-rng-PI_', $schema-basename,'_success.txt') status-dir-uri = $status-dir-uri |