Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions svrl.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -140,4 +150,4 @@ attlist.assert-and-report =
attribute test { text },
attribute role { xsd:NMTOKEN }?,
attribute flag { xsd:NMTOKEN }?
start = schematron-output
start = schematron-output