Don't duplicate content in XML schemas #444
Labels
Discussion Needed
This issues needs to be reviewed by the OSCAL development team.
enhancement
Scope: Metaschema
Issues targeted at the metaschema pipeline
Scope: Modeling
Issues targeted at development of OSCAL formats
User Story
Milestone
User Story:
As an OSCAL schema consumer (tool writer), I would like XSDs that do not have duplicate content. For example, I don't want the Catalog schema and Profile schema to both describe Metadata.
Goals:
I want to automatically convert the schemas to class definitions (e.g. with JAXB). If I have two schemas with the same content, I have to use two separate namespaces, and I end up with two different (yet equivalent) classes for anything duplicated. That makes my code ugly (because now I have to use the full namespace + class name) and makes it harder to share the handler code.
Dependencies:
None.
Acceptance Criteria
Be able to generate a single class for each single concept in the schemas.
Implementation Notes
I think what I'm asking is that the metaschema translation keeps the shared parts (from https://github.com/usnistgov/OSCAL/blob/master/src/metaschema/oscal_metadata_metaschema.xml) as a separate XSD, and the using XSDs just import that.
The text was updated successfully, but these errors were encountered: