From 649856a70758d715c527bc35fb59f0329cd2a91d Mon Sep 17 00:00:00 2001 From: David Waltermire Date: Tue, 7 Dec 2021 10:52:30 -0500 Subject: [PATCH] refactoring constraint support in the metaschema schema; adding support for level and removing requires --- toolchains/xslt-M4/validate/metaschema.xsd | 222 +++++++++++++-------- 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/toolchains/xslt-M4/validate/metaschema.xsd b/toolchains/xslt-M4/validate/metaschema.xsd index 87661cbc5..6f9fac4a2 100644 --- a/toolchains/xslt-M4/validate/metaschema.xsd +++ b/toolchains/xslt-M4/validate/metaschema.xsd @@ -414,20 +414,68 @@ + + + + + + + + + + + + + + + + + + + + + A violation of the constraint represents a serious fault in the content + that will prevent typical use of the content. + + + + + A violation of the constraint represents a fault in the content. This + may include issues around compatibility, integrity, consistency, etc. + + + + + A violation of the constraint represents a potential issue + with the content. + + + + + A violation of the constraint represents a point of + interest. + + + + + Indicates a set of values to be recognized for a flag or field, with semantics asserted by a metaschema enumeration (enum). - - - - - - - The given enumerated value or values are inclusive of other values ('yes') or not ('no', the default) - - - + + + + + + + + + The given enumerated value or values are inclusive of other values ('yes') or not ('no', the default) + + + + @@ -491,16 +539,20 @@ - - - - - - - Specifies the datatype for which the value identified by the scope attribute must conform to. - - - + + + + + + + + + Specifies the datatype for which the value identified by the scope + attribute must conform to. + + + + @@ -613,26 +665,33 @@ Defines an unique key constraint. - - - - Specifies a value, relative to the provided target, that is to be used as part of the key. More than one key-field can be used to create a composite key. - - - - - - - The first captured group in the regular expression is used as the key value for lookup. The regular expression must not match a zero-length string. - - - - - - - - - + + + + + + Specifies a value, relative to the provided target, + that is to be used as part of the key. More than one key-field can be used to create + a composite key. + + + + + + + The first captured group in the regular expression is used + as the key value for lookup. The regular expression must not match a + zero-length string. + + + + + + + + + + @@ -701,16 +760,20 @@ - - - - - - A test that is expected to pass in this context. Presently, datatyping is not directly supported except by - explicit use of data type casting functions, e.g. xs:double() and xs:date(). - - - + + + + + + + + A test that is expected to pass in this context. Presently, datatyping + is not directly supported except by explicit use of data type casting functions, e.g. + xs:double() and xs:date(). + + + + @@ -751,25 +814,35 @@ - - - - - - Specifies the target of the constraint as a metaschema path. If the value is "." and the containing metaschema object is a field, the constraint applies to the field's value. Otherwise, the scope value "." is not allowed to be used. - - - - - Minimum occurrence of assemblies or fields within the set of objects identified by the target. This value cannot be less than the corresponding value defined on the target. - - - - - Maximum occurrence of assemblies or fields within the set of objects identified by the target. This value must be less than the corresponding value defined on the target. - - - + + + + + + + + Specifies the target of the constraint as a metaschema path. If the + value is "." and the containing metaschema object is a field, the constraint applies + to the field's value. Otherwise, the scope value "." is not allowed to be + used. + + + + + Minimum occurrence of assemblies or fields within the set of objects + identified by the target. This value cannot be less than the + corresponding value defined on the target. + + + + + Maximum occurrence of assemblies or fields within the set of objects + identified by the target. This value must be less than the corresponding + value defined on the target. + + + + @@ -789,17 +862,6 @@ Checks that the specified set of target entries match the provided cardinality. - - - - - - - - - - -