Implement XML element grouping on field or assembly sequences #470
Labels
enhancement
Scope: Metaschema
Issues targeted at the metaschema pipeline
Scope: Modeling
Issues targeted at development of OSCAL formats
User Story
Milestone
User Story:
Analogous to the way Metaschema offers features on the JSON side, it offers an attribute permitting the designer to indicate that a grouped sequence of fields or assemblies, when represented in XML, should be not an unwrapped sequence, but with an explicit wrapper.
Currently the attribute is named
@xml-behavior
and its permissible values in Metaschema areGROUPED
andUNGROUPED
, the latter being the default.With
GROUPED
specified,instead of corresponding to
will be
Goals:
Implement this feature so that designers using metaschema can specify this representation.
Dependencies:
Note that in XSD, the declaration of such a field or assembly will correspond to two element declarations not only one (both
citation
andcitation-list
in this example).Cardinalities should correspond. A minOccurs of 0 should result in an optional wrapper with a required child while when minOccurs is 1 or more, both should be required.
Also see #467 for renaming
xml-behavior
since strict XML processors might not approve of that name.Finally, unit testing these features will need to be integrated into CI-CD (on two levels, validating schema production and validation schema functionality on instances), which will be very useful going forward.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: