Definition Type: Element
Name: item
Namespace: http://oval.mitre.org/XMLSchema/oval#independent
Type: anyType:http://www.w3.org/2001/XMLSchema
Containing Schema: independent-schema.xsd
MinOccurs 1
MaxOccurs unbounded
Abstract
Documentation:
An 'item' element defines a specific comparison to perform on a variable. The required 'variable' attribute provides a link to a variable to use. The optional datatype determines the type of data expected as the value of the 'item' element. (the default datatype is 'string') The required 'operator' attribute defines the operator to use for the comparision. The optional var_ref attribute refers the value of the item to a variable element. Note that the comparision should read: '*variable* is *operator* the value of the item'. Also note that it is implied that the datatypes of the two value being compared are the same.
Collapse XSD Schema Diagram:
Drilldown into var_ref in schema independent-schema_xsd Drilldown into operator in schema independent-schema_xsd Drilldown into datatype in schema independent-schema_xsd Drilldown into variable in schema independent-schema_xsdXSD Diagram of item in schema independent-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="item" minOccurs="1" maxOccurs="unbounded">
    <xsd:annotation>
        <xsd:documentation>An 'item' element defines a specific comparison to perform on a variable.  The required 'variable' attribute provides a link to a variable to use.  The optional datatype determines the type of data expected as the value of the 'item' element.  (the default datatype is 'string')  The required 'operator' attribute defines the operator to use for the comparision.  The optional var_ref attribute refers the value of the item to a variable element.  Note that the comparision should read: '*variable* is *operator* the value of the item'.  Also note that it is implied that the datatypes of the two value being compared are the same.</xsd:documentation>
        <xsd:appinfo>
            <parent_test>Variable Test</parent_test>
            <cardinality>1</cardinality>
            <content>none</content>
            <valid_datatypes>binary, boolean, component, float, int, string, version</valid_datatypes>
            <valid_operators>equals, not equal, greater than, less than, greater than or equal, less than or equal, bitwise and, bitwise or, pattern match</valid_operators>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="xsd:anyType">
                <xsd:attribute name="variable" type="oval:varid" use="required" />
                <xsd:attribute name="datatype" type="oval:datatypes" use="optional" default="string" />
                <xsd:attribute name="operator" type="oval:operators" use="optional" default="equals" />
                <xsd:attribute name="var_ref" type="oval:varid" use="optional" />
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
variable independent:variable Required
datatype independent:datatype string Optional
operator independent:operator equals Optional
var_ref independent:var_ref Optional
<anyAttribute>