-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored and simplified composition pipeline supporting definitions…
… declared to be 'local' at top level (#76); now with unit testing
- Loading branch information
1 parent
464a418
commit 63b57ad
Showing
33 changed files
with
381 additions
and
1,854 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 53 additions & 58 deletions
111
toolchains/xslt-M4/compose/testing/1_collected/working_metaschema-COLLECTED.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,70 @@ | ||
<METASCHEMA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0" | ||
module="..."> | ||
<schema-name module="...">OSCAL TEST Format</schema-name> | ||
<schema-version module="...">0.0</schema-version> | ||
<short-name module="...">oscal-test</short-name> | ||
<namespace module="...">http://csrc.nist.gov/ns/metaschema/test</namespace> | ||
<remarks module="..."> | ||
<p module="...">For exercising Metaschema semantics with respect to modular assembly and composition.</p> | ||
module="file:/C:/Users/wap1/Documents/usnistgov/OSCAL/build/metaschema/toolchains/xslt-M4/compose/testing/working_metaschema.xml"> | ||
<schema-name>OSCAL TEST Format</schema-name> | ||
<schema-version>0.0</schema-version> | ||
<short-name>oscal-test</short-name> | ||
<namespace>http://csrc.nist.gov/ns/metaschema/test</namespace> | ||
<remarks> | ||
<p>For exercising Metaschema semantics with respect to modular assembly and composition.</p> | ||
</remarks> | ||
<METASCHEMA abstract="yes" | ||
module="..."> | ||
<schema-name module="...">OSCAL Control Catalog Format</schema-name> | ||
<schema-version module="...">1.0.0-milestone3</schema-version> | ||
<short-name module="...">oscal-catalog</short-name> | ||
<namespace module="...">http://csrc.nist.gov/ns/metaschema/test</namespace> | ||
<remarks module="..."> | ||
<p module="...">For exercising Metaschema semantics with respect to modular assembly and composition.</p> | ||
</remarks> | ||
<define-assembly name="module-assembly" module="..."> | ||
<formal-name module="...">Assembly defined in a module</formal-name> | ||
<description module="...">XXX</description> | ||
<define-flag name="local-flag" module="..."> | ||
<formal-name module="...">Locally defined flag</formal-name> | ||
<description module="...">XXX</description> | ||
module="file:/C:/Users/wap1/Documents/usnistgov/OSCAL/build/metaschema/toolchains/xslt-M4/compose/testing/module_metaschema.xml"> | ||
<schema-name>OSCAL TEST Format Module</schema-name> | ||
<schema-version>0.0</schema-version> | ||
<short-name>oscal-test</short-name> | ||
<namespace>http://csrc.nist.gov/ns/metaschema/test</namespace> | ||
<define-assembly name="module-assembly"> | ||
<formal-name>Assembly defined in a module</formal-name> | ||
<description>XXX</description> | ||
<define-flag name="local-flag"> | ||
<formal-name>Locally defined flag</formal-name> | ||
<description>XXX</description> | ||
</define-flag> | ||
<model module="..."> | ||
<field ref="module-global-field" module="..."/> | ||
<field ref="module-top-level-local-field" module="..."/> | ||
<define-field name="module-local-field" module="..."> | ||
<formal-name module="...">Locally defined field</formal-name> | ||
<description module="...">XXX</description> | ||
<model> | ||
<field ref="module-global-field"/> | ||
<define-field name="module-top-level-local-field" scope="local"> | ||
<formal-name>Field, defined in a module as 'local', should appear as 'local'</formal-name> | ||
<description>ZZZ</description> | ||
</define-field> | ||
<define-field name="module-local-field"> | ||
<formal-name>Locally defined field</formal-name> | ||
<description>XXX</description> | ||
</define-field> | ||
</model> | ||
</define-assembly> | ||
<define-field name="module-global-field" module="..."> | ||
<formal-name module="...">Field, defined in a module (global by default)</formal-name> | ||
<description module="...">XXX</description> | ||
</define-field> | ||
<define-field name="module-top-level-local-field" scope="local" module="..."> | ||
<formal-name module="...">Field, defined in a module as 'local'</formal-name> | ||
<description module="...">XXX</description> | ||
<define-field name="module-global-field"> | ||
<formal-name>Field, defined in a module (global by default)</formal-name> | ||
<description>XXX</description> | ||
</define-field> | ||
</METASCHEMA> | ||
<define-assembly name="root" module="..."> | ||
<formal-name module="...">Nominal root</formal-name> | ||
<description module="...">XXX</description> | ||
<root-name module="...">root-assembly</root-name> | ||
<flag ref="top-level-flag" module="..."/> | ||
<define-flag name="local-flag" module="..."> | ||
<formal-name module="...">Locally defined flag</formal-name> | ||
<description module="...">XXX</description> | ||
<define-assembly name="root"> | ||
<formal-name>Nominal root</formal-name> | ||
<description>XXX</description> | ||
<root-name>root-assembly</root-name> | ||
<flag ref="top-level-flag"/> | ||
<define-flag name="local-flag"> | ||
<formal-name>Locally defined flag</formal-name> | ||
<description>XXX</description> | ||
</define-flag> | ||
<model module="..."> | ||
<field ref="top-level-global-field" module="..."/> | ||
<field ref="top-level-local-field" module="..."/> | ||
<define-field name="local-field" module="..."> | ||
<formal-name module="...">Locally defined field</formal-name> | ||
<description module="...">XXX</description> | ||
<model> | ||
<field ref="top-level-global-field"/> | ||
<define-field name="top-level-local-field" scope="local"> | ||
<formal-name>Field, defined at top level as 'local'</formal-name> | ||
<description>XXX</description> | ||
</define-field> | ||
<define-field name="local-field"> | ||
<formal-name>Locally defined field</formal-name> | ||
<description>XXX</description> | ||
</define-field> | ||
</model> | ||
</define-assembly> | ||
<define-field name="top-level-global-field" module="..."> | ||
<formal-name module="...">Field, defined at top level (global by default)</formal-name> | ||
<description module="...">XXX</description> | ||
</define-field> | ||
<define-field name="top-level-local-field" scope="local" module="..."> | ||
<formal-name module="...">Field, defined at top level as 'local'</formal-name> | ||
<description module="...">XXX</description> | ||
<define-field name="top-level-global-field"> | ||
<formal-name>Field, defined at top level (global by default)</formal-name> | ||
<description>XXX</description> | ||
</define-field> | ||
<define-flag name="top-level-flag" module="..."> | ||
<formal-name module="...">Flag, defined at top level</formal-name> | ||
<description module="...">XXX</description> | ||
<define-flag name="top-level-flag"> | ||
<formal-name>Flag, defined at top level</formal-name> | ||
<description>XXX</description> | ||
</define-flag> | ||
</METASCHEMA> |
Oops, something went wrong.