Definition Type: ComplexType
Name: DefinitionType
Namespace: http://oval.mitre.org/XMLSchema/oval-definitions-5
Containing Schema: oval-definitions-schema.xsd
Abstract
Documentation:
The DefinitionType defines a single OVAL Definition. A definition is the key structure in OVAL. It is analogous to the logical sentence or proposition: if a computer's state matches the configuration parameters laid out in the criteria, then that computer exhibits the state described. The DefinitionType contains a section for various metadata related elements that describe the definition. This includes a description, version, affected system types, and reference information. The notes section of a definition should be used to hold information that might be helpful to someone examining the technical aspects of the definition. For example, why certain tests have been included in the criteria, or maybe a link to where further information can be found. The DefinitionType also (unless the definition is deprecated) contains a criteria child element that joins individual tests together with a logical operator to specify the specific computer state being described. The required id attribute is the OVAL-ID of the Definition. The form of an OVAL-ID must follow the specific format described by the definitionidPattern. The required version attribute holds the current version of the definition. Versions are integers, starting at 1 and incrementing every time a definition is modified. The required class attribute indicates the specific class to which the definition belongs. The class gives a hint to a user so they can know what the definition writer is trying to say. See the definition of classEnumeration for more information about the different valid classes. The optional deprecated attribute signifies that an id is no longer to be used or referenced but the information has been kept around for historic purposes.
Collapse XSD Schema Diagram:
Drilldown into criteria in schema oval-definitions-schema_xsd Drilldown into notes in schema oval-definitions-schema_xsd Drilldown into metadata in schema oval-definitions-schema_xsd Drilldown into Signature in schema xmldsig-core-schema_xsd Drilldown into deprecated in schema oval-definitions-schema_xsd Drilldown into class in schema oval-definitions-schema_xsd Drilldown into version in schema oval-definitions-schema_xsd Drilldown into id in schema oval-definitions-schema_xsdXSD Diagram of DefinitionType in schema oval-definitions-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:complexType name="DefinitionType">
    <xsd:annotation>
        <xsd:documentation>The DefinitionType defines a single OVAL Definition. A definition is the key structure in OVAL. It is analogous to the logical sentence or proposition: if a computer's state matches the configuration parameters laid out in the criteria, then that computer exhibits the state described. The DefinitionType contains a section for various metadata related elements that describe the definition. This includes a description, version, affected system types, and reference information. The notes section of a definition should be used to hold information that might be helpful to someone examining the technical aspects of the definition. For example, why certain tests have been included in the criteria, or maybe a link to where further information can be found. The DefinitionType also (unless the definition is deprecated) contains a criteria child element that joins individual tests together with a logical operator to specify the specific computer state being described.</xsd:documentation>
        <xsd:documentation>The required id attribute is the OVAL-ID of the Definition. The form of an OVAL-ID must follow the specific format described by the definitionidPattern. The required version attribute holds the current version of the definition. Versions are integers, starting at 1 and incrementing every time a definition is modified. The required class attribute indicates the specific class to which the definition belongs.  The class gives a hint to a user so they can know what the definition writer is trying to say. See the definition of classEnumeration for more information about the different valid classes. The optional deprecated attribute signifies that an id is no longer to be used or referenced but the information has been kept around for historic purposes.</xsd:documentation>
        <xsd:appinfo>
            <sch:pattern id="required_criteria" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                <sch:rule context="/oval-def:oval_definitions/oval-def:definitions/oval-def:definition[@deprecated='false' or not(@deprecated)]">
                    <sch:assert test="oval-def:criteria">A valid OVAL Definition document must contain a criteria unless the definition is a deprecated definition.</sch:assert>
                </sch:rule>
            </sch:pattern>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
        <xsd:element ref="ds:Signature" minOccurs="0" maxOccurs="1" />
        <xsd:element name="metadata" type="oval-def:MetadataType" minOccurs="1" maxOccurs="1" />
        <xsd:element name="notes" type="oval-def:NotesType" minOccurs="0" maxOccurs="1" />
        <xsd:element name="criteria" type="oval-def:CriteriaType" minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="id" type="oval:DefinitionIDPattern" use="required" />
    <xsd:attribute name="version" type="xsd:nonNegativeInteger" use="required" />
    <xsd:attribute name="class" type="oval-def:ClassEnumeration" use="required" />
    <xsd:attribute name="deprecated" type="xsd:boolean" use="optional" default="false" />
</xsd:complexType>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
Signature ds:Signature 0 1
metadata oval-def:metadata 1 1
notes oval-def:notes 0 1
criteria oval-def:criteria 0 1
Collapse Child Attributes:
Name Type Default Value Use
id oval-def:id Required
version oval-def:version Required
class oval-def:class Required
deprecated oval-def:deprecated false Optional
Collapse Derivation Tree:
Collapse References:
oval-def:definition