<xsd:element name="version_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The version_state element defines the version information held within a Cisco CatOS software release. The swtich_series element specifies the Catalyst switch series. The image_name element specifies the name of the CatOS image. The catos_major_release, catos_individual_release and catos_version_id elements specify the software version information of the module. For instance, if the CatOS version is 8.5(4c)GLX, then catos_major_release is 8.5GLX, catos_individual_release is 4 and catos_version_id is c.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="swtich_series" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>A Catalyst switch series to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosverstedevice_series" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:version_state/catos-def:swtich_series">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the swtich_series entity of a version_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="image_name" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The name of a CatOS image to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosversteimage_name" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:version_state/catos-def:image_name">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the image_name entity of a version_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="catos_major_release" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The major release of CatOS to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosverstecatos_major_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:version_state/catos-def:catos_major_release">
<sch:assert test="@datatype='version'">
<sch:value-of select="../@id" /> - datatype attribute for the catos_major_release entity of a version_state should be 'version'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="catos_individual_release" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The individual release of CatOS to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosverstecatos_individual_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:version_state/catos-def:catos_individual_release">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the catos_individual_release entity of a version_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="catos_version_id" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The version id of Cat OS to check for.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosverstecatos_version_id" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:version_state/catos-def:catos_version_id">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the catos_version_id entity of a version_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|