Testing SVRL for any UBL-related errors
Test the output of Schematron transformation for any errors while at
the same time translating the location contexts for UBL namespace prefixes.
This returns a non-zero exit code when the input SVRL xml file contains
a signalled error for an assertion or a report.
(ref: Part 3: Rule-based validation - Schematron (ISO/IEC 19757-3:2006)
http://standards.iso.org/ittf/PubliclyAvailableStandards 19757-3)
The location contexts are massaged when UBL namespaces are recognized so
that the end result uses familiar cac:, cbc:, and ext: prefixes, and no
prefix nor predicate on the document element.
Standard output can be ignored as all messages are sent to standard error.
Any given error reports the ordinal number, followed by the message,
followed by the XPath context, followed by " / ", followed by the
XPath test, followed by the semantics spreadsheet reference.
The XPath context can be found in the input document. The
XPath test location may or may not be found in the input document.
Invocation parameters and input file
The input file is the output SVRL from Schematron checking.
The output is a text file
Main logic
Return an error and report all failed assertions or successful reports.
.
/
(code list expression suppressed)
. Suppressed rule: "
" shadowed by rule: "
"
The following error report is simply the exit
mechanism and can be ignored: