Definition Type: Element
Name: criterion
Namespace: http://oval.mitre.org/XMLSchema/oval_results
Containing Schema: oval-results-schema.xsd
Abstract
Documentation:
This element specifies a specific tests to be included in either the software or configuration section of a definition's criteria. The required 'test_ref' attribute is actual id of the test being linked to. The optional version attribute signifies which version of the test was used during analysis. Different versions of a test can be encounted if a test contains a variable reference and different values for the variable are used in different definition instances. The optional 'negate' attribute signifies that a failed result of the test should be looked for instead of a successful result. For example, the test might normally return true if the patch is installed. By setting negate equal to true, what we get is the test element will return 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. The required result attribute holds the result of the analysis, either true, false, or error.
Collapse XSD Schema Diagram:
Drilldown into result in schema oval-results-schema_xsd Drilldown into comment in schema oval-results-schema_xsd Drilldown into negate in schema oval-results-schema_xsd Drilldown into version in schema oval-results-schema_xsd Drilldown into test_ref in schema oval-results-schema_xsdXSD Diagram of criterion in schema oval-results-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="criterion">
    <xsd:annotation>
        <xsd:documentation>This element specifies a specific tests to be included in either the software or configuration section of a definition's criteria.  The required 'test_ref' attribute is actual id of the test being linked to.  The optional version attribute signifies which version of the test was used during analysis.  Different versions of a test can be encounted if a test contains a variable reference and different values for the variable are used in different definition instances.  The optional 'negate' attribute signifies that a failed result of the test should be looked for instead of a successful result.  For example, the test might normally return true if the patch is installed.  By setting negate equal to true, what we get is the test element will return 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.  The required result attribute holds the result of the analysis, either true, false, or error.</xsd:documentation>
        <xsd:appinfo>
            <cardinality>1-n</cardinality>
            <attributes>test_ref, [version], [negate], comment, result</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_results:testid" use="required" />
        <xsd:attribute name="version" type="oval_results:versionType" use="optional" default="1" />
        <xsd:attribute name="negate" type="xsd:boolean" use="optional" default="false" />
        <xsd:attribute name="comment" type="xsd:string" use="required" />
        <xsd:attribute name="result" type="oval_results:resultType" use="required" />
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
test_ref oval_results:test_ref Required
version oval_results:version 1 Optional
negate oval_results:negate false Optional
comment oval_results:comment Required
result oval_results:result Required