<xsd:element name="module_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The module_state element defines the module information held within a Cisco Catalyst switch. The module_number, type, and model element specifies the number, type and model of the module respectively. The software_major_release, software_individual_release and software_version_id elements specify the software version information of the module. For instance, if the software version is 8.5(4c)GLX, then software_major_release is 8.5GLX, software_individual_release is 4 and software_version_id is c. Similarly, the hardware_major_release, hardware_individual_release, firmware_major_release and firmware_individual_release elements reveal the hardware and firmware version information of the module.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="module_number" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>A number that identifies the a specific module.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestemodule_number" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:module_number">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the module_number entity of a module_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="type" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The type of module.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestetype" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:type">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the type entity of a module_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="model" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The model of a module.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestemodel" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:model">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the model entity of a module_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="software_major_release" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The major relase of the software of a module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestesoftware_major_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:software_major_release">
<sch:assert test="@datatype='version'">
<sch:value-of select="../@id" /> - datatype attribute for the software_major_release entity of a module_state should be 'version'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="software_individual_release" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The individual release of the software of the module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestesoftware_individual_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:software_individual_release">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the software_individual_release entity of a module_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="software_version_id" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The vesion id of the software of a module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestesoftware_version_id" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:software_version_id">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the software_version_id entity of a module_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="hardware_major_release" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The hardware major release of a module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestehardware_major_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:hardware_major_release">
<sch:assert test="@datatype='version'">
<sch:value-of select="../@id" /> - datatype attribute for the hardware_major_release entity of a module_state should be 'version'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="hardware_individual_release" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The hardware individual release of a module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestehardware_individual_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:hardware_individual_release">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the hardware_individual_release entity of a module_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="firmware_major_release" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The major release of the firmware of a module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestefirmware_major_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:firmware_major_release">
<sch:assert test="@datatype='version'">
<sch:value-of select="../@id" /> - datatype attribute for the firmware_major_release entity of a module_state should be 'version'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="firmware_individual_release" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The individual release of the firmware of a module to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmodulestefirmware_individual_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_state/catos-def:firmware_individual_release">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the firmware_individual_release entity of a module_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|