Schematron / schema-2016

Unofficial copy of schema(s) for Schematron 2016.
Other
4 stars 2 forks source link

svrl:failed-assert & svrl:successful-report require text but sch:assert & sch:report can be empty #6

Open dmj opened 5 years ago

dmj commented 5 years ago

This means that I can create a valid Schematron that results in an invalid SVRL report.

It should be

# only failed assertions are reported
failed-assert =
     element failed-assert {
         attlist.assert-and-report, diagnostic-reference*, property-reference*, human-text?
     }
# only successful asserts are reported
successful-report =
     element successful-report {
         attlist.assert-and-report, diagnostic-reference*, property-reference*, human-text?
     }
dmj commented 5 years ago

Sorry, now I see. I can create an empty svrl:text.