<xsd:element name="version_item" substitutionGroup="oval-sc:item">
<xsd:annotation>
<xsd:documentation>The version item holds information about the version of the IOS operating system. It extends the standard ItemType as defined in the oval-system-characteristics schema and one should refer to the ItemType description for more information.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-sc:ItemType">
<xsd:sequence>
<xsd:element name="major_release" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The major_release is a combination of train and rebuild information and is used by Cisco advisories to identify major releases.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="iosversionitemmajor_release" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ios-sc:version_item/ios-sc:major_release">
<sch:assert test="not(@datatype) or @datatype='string'">item <sch:value-of select="../@id" /> - datatype attribute for the major_release entity of a version_item should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="train_number" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The train number is the dotted version that starts a version string. For example the version string 12.2(3)T has a train number of 12.2.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="iosversionitemtrain_number" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ios-sc:version_item/ios-sc:train_number">
<sch:assert test="not(@datatype) or @datatype='string'">item <sch:value-of select="../@id" /> - datatype attribute for the train_number entity of a version_item should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="train_identifier" type="ios-sc:EntityItemTrainIdentifierType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The train identifier is the type of Train. For example the version string 12.2(3)T has a train identifier of T. Please see the EntityItemTrainIdentifierType for more information about the different train identifiers.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="iosversionitemtrain_identifier" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ios-sc:version_item/ios-sc:train_identifier">
<sch:assert test="not(@datatype) or @datatype='string'">item <sch:value-of select="../@id" /> - datatype attribute for the train_identifier entity of a version_item should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="version_string" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The version entity holds the raw string output of a 'show version' command.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="iosversionitemversion_string" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ios-sc:version_item/ios-sc:version_string">
<sch:assert test="not(@datatype) or @datatype='ios_version'">item <sch:value-of select="../@id" /> - datatype attribute for the version_string entity of a version_item should be 'ios_version'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|