Skip to content

Commit

Permalink
Option 1 check namespaces for usnistgov#2112
Browse files Browse the repository at this point in the history
This approach adjusts the oscal-catalog-control-require-statement-when-
not-withdrawn constraint to look at the core NIST and non-core namespace
for parts to properly constrain the required existence of a statement or
withdrawn prop status value for NIST-specific catalog use cases.
  • Loading branch information
xee5ch committed Feb 22, 2025
1 parent 1eb7d81 commit 877d172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metaschema/oscal_catalog_metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
</model>
<constraint>
<expect id="oscal-catalog-control-require-statement-when-not-withdrawn" target="."
test="prop[@name='status']/@value=('withdrawn','Withdrawn') or part[@name='statement']"/>
test="part[@ns != 'http://csrc.nist.gov/ns/oscal'] part[@ns='http://csrc.nist.gov/ns/oscal' @name='statement'] or prop[@ns='http://csrc.nist.gov/ns/oscal' @name='status']/@value=('withdrawn','Withdrawn')"/>
<allowed-values id="oscal-control-prop-name"
target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal')]/@name">
&allowed-values-control-group-property-name;
Expand Down

0 comments on commit 877d172

Please sign in to comment.