Renamed `json-behavior' and 'xml-behavior' #467
Labels
bug
Scope: Metaschema
Issues targeted at the metaschema pipeline
Scope: Modeling
Issues targeted at development of OSCAL formats
Milestone
Describe the bug
Presently the metaschema has attributes defined on
group-as
namedjson-behavior
andxml-behavior
. This would be fine except names starting with the characters 'x','m','l' (lower or upper case) are reserved by the XML Recommendation (both version 1.0 and 1.1):https://www.w3.org/TR/xml/#sec-common-syn
https://www.w3.org/TR/xml11/#sec-common-syn
Effectively, this means the name
xml-behavior
is illegal (likexml-is-the-best
).Who is the bug affecting?
Potentially anyone using XML tools with strict conformance will hit an error processing any metaschema using this attribute.
What is affected by this bug?
Potentially a conformant processor could refuse to process such a document (Draconian error handling). This would not be good.
When does this occur?
Many tools today appear to ignore this rule but it is still in the formal specifications, so it could emerge unexpectedly.
Expected behavior (i.e. solution)
Preventing this issue requires renaming
xml-behavior
. For symmetry, renamingjson-behavior
as well.Potential names include
configure-xml
andconfigure-json
.The text was updated successfully, but these errors were encountered: