From 23343b3cddbbf9682e2053599c4b1f159328fb2a Mon Sep 17 00:00:00 2001 From: David Maus Date: Wed, 11 Sep 2019 12:05:17 +0200 Subject: [PATCH] Provide a Q{http://purl.oclc.org/dsdl/svrl}suppressed-rule element See #14 --- svrl.rnc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/svrl.rnc b/svrl.rnc index 979dace..25d8457 100644 --- a/svrl.rnc +++ b/svrl.rnc @@ -42,7 +42,7 @@ schematron-output = human-text*, ns-prefix-in-attribute-values*, (active-pattern, - (fired-rule, (failed-assert | successful-report)*)+)+ + (fired-rule, (failed-assert | successful-report)*, suppressed-rule*)+)+ } # only namespaces from sch:ns need to be reported ns-prefix-in-attribute-values = @@ -70,6 +70,16 @@ fired-rule = attribute flag { xsd:NMTOKEN }?, empty } +# report suppressed rules +suppressed-rule = + element suppressed-rule { + attribute id { xsd:NMTOKEN }?, + attribute name { text }?, + attribute context { text }, + attribute role { xsd:NMTOKEN }?, + attribute flag { xsd:NMTOKEN }?, + empty + } # only references are reported, not the diagnostic diagnostic-reference = element diagnostic-reference { @@ -140,4 +150,4 @@ attlist.assert-and-report = attribute test { text }, attribute role { xsd:NMTOKEN }?, attribute flag { xsd:NMTOKEN }? -start = schematron-output \ No newline at end of file +start = schematron-output