Definition Type: Element
Name: subexpression
Namespace: http://oval.mitre.org/XMLSchema/oval-definitions-5#independent
Type: oval-def:EntityStateAnyType
Containing Schema: independent-definitions-schema.xsd
MinOccurs 0
MaxOccurs 1
Abstract
Documentation:
The subexpression entity represents a value to test against the subexpression in the specified pattern. If multiple subexpressions are specified in the pattern, this value tested against all of them. For example, if the pattern abc(.*)mno(.*)xyp was supplied, and the state specifies a subexpression value of enabled, then the test would check that both (or at least one, none, etc. depending on the entity_check attribute) of the subexpressions have a value of enabled.
Collapse XSD Schema Diagram:
Drilldown into var_ref in schema oval-definitions-schema_xsd Drilldown into mask in schema oval-definitions-schema_xsd Drilldown into operation in schema oval-definitions-schema_xsd Drilldown into datatype in schema oval-definitions-schema_xsd Drilldown into EntityBaseType in schema oval-definitions-schema_xsd Drilldown into var_check in schema oval-definitions-schema_xsd Drilldown into entity_check in schema oval-definitions-schema_xsd Drilldown into EntityStateBaseType in schema oval-definitions-schema_xsd Drilldown into EntityStateAnyType in schema oval-definitions-schema_xsdXSD Diagram of subexpression in schema independent-definitions-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="subexpression" type="oval-def:EntityStateAnyType" minOccurs="0" maxOccurs="1">
    <xsd:annotation>
        <xsd:documentation>The subexpression entity represents a value to test against the subexpression in the specified pattern. If multiple subexpressions are specified in the pattern, this value tested against all of them. For example, if the pattern abc(.*)mno(.*)xyp was supplied, and the state specifies a subexpression value of enabled, then the test would check that both (or at least one, none, etc. depending on the entity_check attribute) of the subexpressions have a value of enabled. </xsd:documentation>
        <xsd:appinfo>
            <sch:pattern id="txt54stesubexpression" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                <sch:rule context="ind-def:textfilecontent54_state/ind-def:subexpression">
                    <sch:assert test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())">
                        <sch:value-of select="../@id" /> - The datatype has been set to 'int' but the value is not an integer.</sch:assert>
                </sch:rule>
            </sch:pattern>
        </xsd:appinfo>
    </xsd:annotation>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
datatype oval-def:datatype string Optional
operation oval-def:operation equals Optional
mask oval-def:mask false Optional
var_ref oval-def:var_ref Optional
entity_check oval-def:entity_check all Optional
var_check oval-def:var_check all Optional
Collapse Derivation Tree: