Definition Type: ComplexType
Name: SubstringFunctionType
Namespace: http://oval.mitre.org/XMLSchema/oval-definitions-5
Containing Schema: oval-definitions-schema.xsd
Abstract
Documentation:
The substring function takes a single string component and produces a single value that contains a portion of the original string. The substring_start attribute defines the starting position in the original string. Note, to include the first character of the string, the start position would be 1. Also note that a value less than one also means starting at the first character of the string. The substring_length attribute defines how many character after and including the starting character to include. Note that a substring_length value greater than the actual length of the string or a negative value means to include all the characters after the starting character. For example assume a basic component element that returns the value "abcdefg" with a substring_start value of 3 and a substring_length value of 2. The local_variable element would be evaluate to have a single value of "cd". If the string component used by the substring function returns multiple values, then the substring operation is performed multiple times and results in multiple values for the component.
Collapse XSD Schema Diagram:
Drilldown into substring in schema oval-definitions-schema_xsd Drilldown into split in schema oval-definitions-schema_xsd Drilldown into escape_regex in schema oval-definitions-schema_xsd Drilldown into end in schema oval-definitions-schema_xsd Drilldown into concat in schema oval-definitions-schema_xsd Drilldown into begin in schema oval-definitions-schema_xsd Drilldown into FunctionGroup in schema oval-definitions-schema_xsd Drilldown into literal_component in schema oval-definitions-schema_xsd Drilldown into variable_component in schema oval-definitions-schema_xsd Drilldown into object_component in schema oval-definitions-schema_xsd Drilldown into ComponentGroup in schema oval-definitions-schema_xsd Drilldown into substring_length in schema oval-definitions-schema_xsd Drilldown into substring_start in schema oval-definitions-schema_xsdXSD Diagram of SubstringFunctionType in schema oval-definitions-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:complexType name="SubstringFunctionType">
    <xsd:annotation>
        <xsd:documentation>The substring function takes a single string component and produces a single value that contains a portion of the original string. The substring_start attribute defines the starting position in the original string. Note, to include the first character of the string, the start position would be 1. Also note that a value less than one also means starting at the first character of the string. The substring_length attribute defines how many character after and including the starting character to include. Note that a substring_length value greater than the actual length of the string or a negative value means to include all the characters after the starting character. For example assume a basic component element that returns the value "abcdefg" with a substring_start value of 3 and a substring_length value of 2. The local_variable element would be evaluate to have a single value of "cd". If the string component used by the substring function returns multiple values, then the substring operation is performed multiple times and results in multiple values for the component.</xsd:documentation>
    </xsd:annotation>
    <xsd:sequence minOccurs="1" maxOccurs="1">
        <xsd:group ref="oval-def:ComponentGroup" />
    </xsd:sequence>
    <xsd:attribute name="substring_start" type="xsd:int" use="required" />
    <xsd:attribute name="substring_length" type="xsd:int" use="required" />
</xsd:complexType>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
object_component oval-def:object_component (1) (1)
variable_component oval-def:variable_component (1) (1)
literal_component oval-def:literal_component (1) (1)
begin oval-def:begin (1) (1)
concat oval-def:concat (1) (1)
end oval-def:end (1) (1)
escape_regex oval-def:escape_regex (1) (1)
split oval-def:split (1) (1)
substring oval-def:substring (1) (1)
<xs:group> oval-def:ComponentGroup (1) (1)
<xs:group> oval-def:FunctionGroup (1) (1)
Collapse Child Attributes:
Name Type Default Value Use
substring_start oval-def:substring_start Required
substring_length oval-def:substring_length Required
Collapse Derivation Tree:
Collapse References:
oval-def:substring