The NIEM Conformance Targets Attribute Specification (CTAS) defines how NIEM XML documents classify what kind of artifact they are. This is not always obvious by inspection, so making this information explicit is important; it also supports automated conformance validation by NIEM tools.
Available versions
Certain NIEM specifications define rules for specific kinds of artifacts. The NDR defines rules for Reference Schema Documents and Extension Schema Documents. The Code List Specification defines rules for a Code List Document, a CSV Code List Document, and a Genericode Code List Document. In addition to defining the artifacts and the rules, these specifications also define conformance target identifiers for each kind of artifact. These are unique string values, formatted as a URL, and include information about the specification, the version, and the kind of artifact.
http://reference.niem.gov/niem/specification/naming-and-design-rules/3.0/#ReferenceSchemaDocument
http://reference.niem.gov/niem/specification/code-lists/4.0/#CSVCodeListDocument
A NIEM XML document can describe itself as a certain kind of artifact by including special attribute ct:conformanceTargets
with a value of one or more of the conformance target identifiers described above.
All conformant NIEM 4.0 release schemas include the
ct:conformanceTargets
attribute with the value of the conformance target identifier specified by the NDR, version 4.0, for Reference Schema Documents:ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/4.0/#ReferenceSchemaDocument"
If an XML document represents more than one kind of artifact, then all applicable conformance target identifiers can be listed together as the ct:conformanceTargets
attribute value, with each identifier separated by whitespace.
The ct:conformanceTargets
attribute is defined by a published schema, conformanceTargets.xsd. This schema is included with each NIEM release starting with 3.0, and in each NIEM subset generated by the SSGT. Starting with the NIEM 4.0 release, the schema is located in its own folder under the niem/utility subdirectory.
The conformanceTargets.xsd
schema defines a single attribute: conformanceTargets
. Its data type is a simple list type for URI values.
In order for a NIEM XML schema to specify its conformance targets, it is necessary to:
conformanceTargets.xsd
schemaconformanceTargets
attribute with all applicable valuesThis is demonstrated in the example below from a 4.0 release schema:
<xs:schema
xmlns:ct="http://release.niem.gov/niem/conformanceTargets/3.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://release.niem.gov/niem/conformanceTargets/3.0/
../../../utility/conformanceTargets/3.0/conformanceTargets.xsd"
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/4.0/#ReferenceSchemaDocument">
<xs:schema>
ct
is assigned to the identifier (target namespace) of the conformance targets schema.xsi
is represents the XML Schema instance namespace.xsi:schemaLocation
attribute assigned the target namespace of the conformance targets schema to a relative location of that file. The file location may also be defined outside of this schema using a XML Catalog.ct:conformanceTargets
attribute contains all applicable conformance target identifiers.NDR 3.0 Reference Schema rules
Conformance targets attribute used by:
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/3.0/#ReferenceSchemaDocument"
NDR 3.0 Extension Schema rules
Conformance targets attribute used by:
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/3.0/#ExtensionSchemaDocument"
NDR 4.0 Reference Schema rules
Conformance targets attribute used by:
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/4.0/#ReferenceSchemaDocument"
NDR 4.0 Extension Schema rules
Conformance targets attribute used by:
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/4.0/#ExtensionSchemaDocument"
NDR 5.0 Reference Schema rules
Conformance targets attribute used by:
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/5.0/#ReferenceSchemaDocument"
NDR 5.0 Extension Schema rules
Conformance targets attribute used by:
ct:conformanceTargets="http://reference.niem.gov/niem/specification/naming-and-design-rules/5.0/#ExtensionSchemaDocument"