Skip to content

Commit

Permalink
Aligned Metaschema module with XSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Feb 14, 2024
1 parent 5c55b27 commit bb4f639
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions schema/metaschema/metaschema-module-metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1311,11 +1311,18 @@
</model>
</define-assembly>

<define-assembly name="metaschema-metapath">
<description>A Metapath expression identifying the model node that the constraints will be applied to.</description>
<use-name>metapath</use-name>
<define-flag name="target" required="yes"/>
</define-assembly>

<define-assembly name="metapath-context">
<model>
<define-field name="metapath" as-type="string">
<assembly ref="metaschema-metapath" min-occurs="1" max-occurs="unbounded">
<description>A Metapath expression identifying the model node that the constraints will be applied to.</description>
</define-field>
<group-as name="metapaths" in-json="ARRAY"/>
</assembly>
<assembly ref="assembly-constraints">
<use-name>constraints</use-name>
</assembly>
Expand Down
3 changes: 1 addition & 2 deletions schema/xml/metaschema-meta-constraints.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
<!--
<xs:choice>
-->
<xs:element name="metaschema-metapath" type="MetaschemaMetapathReferenceType"
maxOccurs="unbounded"/>
<xs:element name="metapath" type="MetaschemaMetapathReferenceType" maxOccurs="unbounded"/>
<!--
<xs:element name="metaschema-definition" type="MetaschemaMetapathReferenceType" maxOccurs="unbounded"/>
</xs:choice>
Expand Down

0 comments on commit bb4f639

Please sign in to comment.