<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>
|