-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix for selected children of unselected parent
Unselected parent could have multiple children that are selected, so data type of template must accommodate multiple elements.
- Loading branch information
1 parent
a97e083
commit 0825b9f
Showing
5 changed files
with
115 additions
and
7 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...profile-resolution/profile-resolution-examples/catalogs/abc-multiple-children_catalog.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="../../example-checkup.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?> | ||
<!-- Modified by conversion XSLT 2021-04-05T11:12:31.584-04:00 - RC2 OSCAL becomes RC3 OSCAL --> | ||
<catalog xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
uuid="6c5149e8-f3a6-437c-8035-025e9b5fc0bf" | ||
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/1.0 ../../../../../xml/schema/oscal_catalog_schema.xsd"> | ||
<metadata> | ||
<title>Alphabet Catalog</title> | ||
<last-modified>2020-05-30T14:51:41.185-04:00</last-modified> | ||
<version>1.0</version> | ||
<oscal-version>1.0.0-rc2</oscal-version> | ||
</metadata> | ||
<control id="a1"> | ||
<title>Control A1</title> | ||
<prop name="label" value="first"/> | ||
<part name="statement" id="a1-stmt"> | ||
<p>A1 ccccc cccccccccccccc.</p> | ||
</part> | ||
<control id="a1.a"> | ||
<title>Control A1-A</title> | ||
<prop name="label" value="second"/> | ||
<part name="statement" id="a1.a-stmt"> | ||
<p>A1 A ccccc cccccccccccccc.</p> | ||
</part> | ||
</control> | ||
<control id="a1.b"> | ||
<title>Control A1-B</title> | ||
<prop name="label" value="third"/> | ||
<part name="statement" id="a1.b-stmt"> | ||
<p>A1 B ccccc cccccccccccccc.</p> | ||
</part> | ||
</control> | ||
<control id="a1.c"> | ||
<title>Control A1-C</title> | ||
<prop name="label" value="fourth"/> | ||
<part name="statement" id="a1.c-stmt"> | ||
<p>A1 C ccccc cccccccccccccc.</p> | ||
</part> | ||
</control> | ||
</control> | ||
</catalog> |
33 changes: 33 additions & 0 deletions
33
...esolution/profile-resolution-examples/output-expected/without-parent_profile_RESOLVED.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<catalog xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
uuid="00000000-0000-4000-B000-000000000000"> | ||
<metadata> | ||
<title>Test Profile</title> | ||
<last-modified>2022-12-26T16:13:57.7747599-05:00</last-modified> | ||
<version>1.0</version> | ||
<oscal-version>1.0.0</oscal-version> | ||
<prop name="resolution-tool" value="some value"/> | ||
<link rel="source-profile" href="../without-parent_profile.xml"/> | ||
</metadata> | ||
<control id="a1"> | ||
<title>Control A1</title> | ||
<prop name="label" value="first"/> | ||
<part name="statement" id="a1-stmt"> | ||
<p>A1 ccccc cccccccccccccc.</p> | ||
</part> | ||
</control> | ||
<control id="a1.a"> | ||
<title>Control A1-A</title> | ||
<prop name="label" value="second"/> | ||
<part name="statement" id="a1.a-stmt"> | ||
<p>A1 A ccccc cccccccccccccc.</p> | ||
</part> | ||
</control> | ||
<control id="a1.c"> | ||
<title>Control A1-C</title> | ||
<prop name="label" value="fourth"/> | ||
<part name="statement" id="a1.c-stmt"> | ||
<p>A1 C ccccc cccccccccccccc.</p> | ||
</part> | ||
</control> | ||
</catalog> |
18 changes: 18 additions & 0 deletions
18
src/specifications/profile-resolution/profile-resolution-examples/without-parent_profile.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="../example-checkup.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?> | ||
<!-- Modified by conversion XSLT 2021-04-05T11:22:07.701-04:00 - RC2 OSCAL becomes RC3 OSCAL --> | ||
<profile xmlns="http://csrc.nist.gov/ns/oscal/1.0" | ||
uuid="cb1ec926-3441-458f-8cce-ea11308c9d37"> | ||
<metadata> | ||
<title>Test Profile</title> | ||
<last-modified>2020-05-30T14:39:35.84-04:00</last-modified> | ||
<version>1.0</version> | ||
<oscal-version>1.0.0</oscal-version> | ||
</metadata> | ||
<import href="catalogs/abc-multiple-children_catalog.xml"> | ||
<include-controls with-parent-controls="no"> | ||
<with-id>a1.a</with-id> | ||
<with-id>a1.c</with-id> | ||
</include-controls> | ||
</import> | ||
</profile> |
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