<xsd:element name="patch_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The patch_state element defines the different information associated with a specific patch installed on the system. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="base" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The base entity reresents a patch base code found before the hyphen.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="patchstebase" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="sol-def:patch_state/sol-def:base">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the base entity of a patch_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="version" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The version entity represents a patch version number found after the hyphen</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="patchsteversion" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="sol-def:patch_state/sol-def:version">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the version entity of a patch_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>
|