forked from usnistgov/metaschema
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More adjustments prepping to M4 unit tests - usnistgov#81 usnistgov#186…
… #201 - now everything is green or grey (pending) no pink
- Loading branch information
1 parent
47349ae
commit c9a4f14
Showing
3 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
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
32 changes: 25 additions & 7 deletions
32
toolchains/xslt-M4/compose/testing/7_digesting/digested.xspec
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,16 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0" | ||
xmlns:opr="http://csrc.nist.gov/ns/oscal/profile-resolution" xmlns:x="http://www.jenitennison.com/xslt/xspec" stylesheet="../../metaschema-digest.xsl"> | ||
|
||
<x:description stylesheet="../../metaschema-digest.xsl" | ||
run-as="external" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0" | ||
xmlns:m="http://csrc.nist.gov/ns/oscal/metaschema/1.0" | ||
xmlns:mv="http://csrc.nist.gov/ns/metaschema/test/variable"> | ||
|
||
<!-- metaschema-digest.xsl | ||
- flattens modular structure | ||
- flattens modular structure (removing any residual METASCHEMA/METASCHEMA) | ||
- marks definitions with their module of origin | ||
- copies @as-type info for defaulting | ||
- casts example markup into target namespace (as found in the metaschema) | ||
--> | ||
<x:scenario label="Working metaschema"> | ||
<x:context href="../2_reduced2/working_metaschema-REDUCED1.xml" select="*" mode="digest" /> | ||
<x:scenario label="Working metaschema" pending="build out"> | ||
<!-- TODO wire to result of predecessor step --> | ||
<x:context href="../6_resolved2/expected/working_metaschema-RESOLVED.xml" select="*" mode="digest" /> | ||
<x:expect label="Basic metaschema composition" href="working_metaschema-DIGESTED.xml" select="*"/> | ||
</x:scenario> | ||
|
||
<x:scenario label="Handling nested METASCHEMAs from modules"> | ||
<x:context mode="digest"> | ||
<METASCHEMA> | ||
<METASCHEMA> | ||
<METASCHEMA/> | ||
</METASCHEMA> | ||
<METASCHEMA/> | ||
</METASCHEMA> | ||
</x:context> | ||
<x:expect label="only a top-level METASCHEMA is given"> | ||
<METASCHEMA/> | ||
</x:expect> | ||
<x:expect label="while a query also finds no others" test="count(descendant::m:METASCHEMA) eq 1"/> | ||
</x:scenario> | ||
</x:description> |