Definition Type: Element
Name: patch_item
Namespace: http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#hpux
Type: oval-sc:ItemType
Containing Schema: hpux-system-characteristics-schema.xsd
Abstract
Documentation:
From /usr/sbin/swlist -l patch PHxx_yyyyy. See swlist manpage for specific fields
Collapse XSD Schema Diagram:
Drilldown into patch_number in schema hpux-system-characteristics-schema_xsd Drilldown into area_patched in schema hpux-system-characteristics-schema_xsd Drilldown into swtype in schema hpux-system-characteristics-schema_xsd Drilldown into message in schema oval-system-characteristics-schema_xsd Drilldown into status in schema oval-system-characteristics-schema_xsd Drilldown into id in schema oval-system-characteristics-schema_xsd Drilldown into ItemType in schema oval-system-characteristics-schema_xsdXSD Diagram of patch_item in schema hpux-system-characteristics-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="patch_item" substitutionGroup="oval-sc:item">
    <xsd:annotation>
        <xsd:documentation>From /usr/sbin/swlist -l patch PHxx_yyyyy. See swlist manpage for specific fields</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="oval-sc:ItemType">
                <xsd:sequence>
                    <xsd:element name="swtype" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>HP-UX patch names begin with 'PH'</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="patchitemswtype" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="hpux-def:patch_state/hpux-def:swtype">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the swtype entity of a patch_item should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="area_patched" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>The third and fourth characters in HP-UX patch names indicate the area of software being patched. CO - General HP-UX commands KL - Kernel patches NE - Network specific patches SS - All other subsystems (X11, starbase, etc.)</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="patchitemarea_patched" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="hpux-sc:patch_item/hpux-sc:area_patched">
                                        <sch:assert test="not(@datatype) or @datatype='string'">item <sch:value-of select="../@id" /> - datatype attribute for the area_patched entity of a patch_item should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="patch_number" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>The sixth through tenth characters in HP-UX patch names represent a unique numeric identifier for the patch.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="patchitempatch_number" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="hpux-sc:patch_item/hpux-sc:patch_number">
                                        <sch:assert test="not(@datatype) or @datatype='int'">item <sch:value-of select="../@id" /> - datatype attribute for the patch_number entity of a patch_item 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>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
message oval-sc:message 0 1
swtype hpux-sc:swtype 0 1
area_patched hpux-sc:area_patched 0 1
patch_number hpux-sc:patch_number 0 1
Collapse Child Attributes:
Name Type Default Value Use
id oval-sc:id Required
status oval-sc:status exists Optional
Collapse Derivation Tree:
Collapse References:
oval-sc:item