<xsd:element name="port_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The port_state element defines the different metadata associate with a Windows port. This includes the local address, port number, protocol, and pid. 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="local_address" type="oval-def:EntityStateStringType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>This element specifies the local IP address the listening port is bound to.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="winportstelocal_address" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:port_state/win-def:local_address">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the local_address entity of a port_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="local_port" type="oval-def:EntityStateIntType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>This element specifies the number assigned to the local listening port.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="winportstelocal_port" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:port_state/win-def:local_port">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the local_port entity of a port_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="protocol" type="win-def:EntityStateProtocolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>This element specifies the type of listening port. It is restricted to either TCP or UDP.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="winportsteprotocol" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:port_state/win-def:protocol">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the protocol entity of a port_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="pid" type="oval-def:EntityStateIntType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The id given to the process that is associated with the specified listening port.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="winportstepid" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:port_state/win-def:pid">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the pid entity of a port_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>
|