usnistgov / metaschema-xslt

An implementation of the Metaschema information modeling language, in XSLT and XProc
https://pages.nist.gov/metaschema/
Other
3 stars 9 forks source link

RNG schema generation #79

Open wendellpiez opened 1 year ago

wendellpiez commented 1 year ago

User Story:

Much in the way a Metaschema produces an XSD, it could potentially produce an RNG schema.

An interesting question would be to see how flags, fields and assemblies map to RNG patterns. This in itself could be highly instructive and supportive of other schema-alignment activities.

Goals:

An RNG generator in XSLT more or less functionally analogous to the XSD or JSON Schema generators, i.e. focusing on the 'legal tagging' questions of the models (element and attribute names and content models), not the metaschema-based constraints definitions.

Also, a more nuanced understanding of the potentials of Metaschema.

Secondary goals include RNG schemas for any Metaschema-defined formats.

More specific goals tbd - while a PR to close this issue might include a functional and documented implementation.

Dependencies:

None known. This could be a fun and instructive research project for an XSLT developer interested in Metaschema, especially one already familiar with RNG.

Acceptance Criteria

{The items above are general acceptance criteria for all User Stories. Please describe anything else that must be completed for this issue to be considered resolved.}