Schematron / schema-2016

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

Reconsider content model of svrl:property-reference #17

Open dmj opened 4 years ago

dmj commented 4 years ago

The content model of svrl:property-reference is defined as containing exactly one svrl:text element. Given the intended use of the element ("for linking assertions or reports to actions, to additional metadata, to datatyping, and to dynamically extracted text related to the subject") this seems odd.

Wouldn'it make more sense to define the model as foreign-element?

diff --git a/schema.d/svrl/svrl.rnc b/schema.d/svrl/svrl.rnc
index 979dace..0791372 100644
--- a/schema.d/svrl/svrl.rnc
+++ b/schema.d/svrl/svrl.rnc
@@ -92,7 +92,7 @@ property-reference =
          attribute property { xsd:NMTOKEN },
          attribute role { text }?,
          attribute scheme { text }?,
-         human-text
+         foreign-element
      }
 # human text
 human-text =
dmj commented 4 years ago

Or maybe ( human-text & foreign )+