-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same Field/Flag Names Used in Different Context #307
Comments
There is a metaschema rule, enforced by its Schematron, that only one definition is permitted per assembly, field, or flag name. There can be many references to field It does not eliminate it, however, and documentation of an element such as Formal schema documentation will sometimes report for each element, which elements in the model can be its parent. We could do this. @brianrufgsa do you think this would help? For example (scroll down to "This element may be contained in": https://www.niso-sts.org/TagLibrary/niso-sts-TL-1-0-html/element/p.html |
@brianrufgsa and @wendellpiez Is this still an issue to be addressed? If not, please comment and assign this back to me to close. |
The requirements described by this issue have been addressed by the improvements to Metaschema modularity and related improvements to the documentation pipeline (#339, #326). Autoproduced docs now report the permitted parentage of elements ("title is permitted inside group, control, subcontrol and part", etc.) which also helps. I am good with closing the Issue and making a new one for newly determined requirements. |
This issue is partially addressed. We still need to make a pass as the descriptions and examples. Every place the same field or flag name is re-used, there must either be a portion of the global description/example that address the use, or a local-ized override of the description and/or example. I think we've made good progress on this, but I am not aware of a comprehensive pass to ensure this has been holistically addressed. |
Based on discussion between @wendellpiez and @brianrufgsa, consider something in the CI/CD pipeline that ensures if an element name or attribute name is used in more than one place, then the documentation is appropriate in all places. |
If not something in the CI/CD pipeline, certainly some sort of rule or policy addressing documentation of flags, fields and assemblies used in different contexts, such as when something is used in several places (such as Generated (web site) documentation for a Metaschema now lists, with every element on the XML side, which contexts it appears in. This can also be determined by querying a (composed) metaschema. This effort should perhaps be folded into #478. Comments, @david-waltermire-nist and @brianrufgsa ? |
OSCAL has supported the use of the same field and flag names since adopting the Metaschema M4 toolchain. |
User Story:
As an OSCAL user, I need to clearly understand how the same field/element name (or a flag/attribute name) may represent different information from one context to the next.
For example, the field name "title" is used in the "metadata" context to represent the title of the document (i.e. catalog, profile, or SSP title). The field name "title" is also used in the "role" context, to indicate the formal title for the indicated role (i.e. System Owner, ISSO, Authorizing Official).
There are multiple ways to handle these situations where a field/element name or attribute/flag name is appears in more than one.
Where this exists, three possible solutions are available:
Goals:
Dependencies:
None.
Acceptance Criteria
Any place a field name is used in more than one context, its documentation and examples address every context in which it is used, such that an OSCAL user can clearly understand which aspect of the documentation/examples applies to any given context.
The text was updated successfully, but these errors were encountered: