Definition Type: Element
Name: criterion
Namespace: http://oval.mitre.org/XMLSchema/oval
Containing Schema: oval-schema.xsd
Abstract
Documentation:
The criterion element identifies a specific test to be included in either the software or configuration section of a definition's criteria. The required test_ref attribute is the actual id of the test being referenced. The optional negate attribute signifies that the result of an individual test should be negated during analysis. For example, consider a test that returns TRUE if a specific patch is installed. By negating this test, it now analyzes to TRUE if the patch is NOT installed. The required comment attribute provides a short description of the specified test and should mirror the comment attribute of the actual test.
Collapse XSD Schema Diagram:
Drilldown into comment in schema oval-schema_xsd Drilldown into negate in schema oval-schema_xsd Drilldown into test_ref in schema oval-schema_xsdXSD Diagram of criterion in schema oval-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="criterion">
    <xsd:annotation>
        <xsd:documentation>The criterion element identifies a specific test to be included in either the software or configuration section of a definition's criteria.  The required test_ref attribute is the actual id of the test being referenced.  The optional negate attribute signifies that the result of an individual test should be negated during analysis.  For example, consider a test that returns TRUE if a specific patch is installed.  By negating this test, it now analyzes to TRUE if the patch is NOT installed.  The required comment attribute provides a short description of the specified test and should mirror the comment attribute of the actual test.</xsd:documentation>
        <xsd:appinfo>
            <cardinality>1-n</cardinality>
            <attributes>test_ref, [negate], comment</attributes>
            <content>none</content>
            <parent_elements>software, configuration</parent_elements>
            <child_elements>none</child_elements>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:attribute name="test_ref" type="oval:testid" use="required" />
        <xsd:attribute name="negate" type="xsd:boolean" use="optional" default="false" />
        <xsd:attribute name="comment" type="xsd:string" use="required" />
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
test_ref oval:test_ref Required
negate oval:negate false Optional
comment oval:comment Required