Schematron / schema-2016

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

Wrong content model of sch:property #16

Closed dmj closed 4 years ago

dmj commented 4 years ago

Schematron 2016 Annex C and Annex H allow the sch:copy-of element inside the sch:property. The content model in the schema lists the sch:value-of element.

diff --git a/schema.d/schematron/iso-schematron.rnc b/schema.d/schematron/iso-schematron.rnc
index c377e12..de2ba95 100644
--- a/schema.d/schematron/iso-schematron.rnc
+++ b/schema.d/schematron/iso-schematron.rnc
@@ -129,7 +129,7 @@ property =
           attribute id { xsd:ID },
           attribute role { roleValue }?,
           attribute scheme { text }?,
-          (foreign & (text | name | value-of | emph | dir | span)*)
+          (foreign & (text | name | copy-of | emph | dir | span)*)
      }
 report =
      element report {
dmj commented 4 years ago

Sorry, my mistake. There is no sch:copy-of element...