<xsd:element name="interface_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>The interface test enumerate various attributes about the interfaces on a system. It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references an interface_object and the optional state element specifies the interface information to check. The evaluation of the test is guided by the check attribute that is inherited from the TestType.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="wininterfacetst" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:interface_test/win-def:object">
<sch:assert test="@object_ref=/oval-def:oval_definitions/oval-def:objects/win-def:interface_object/@id">
<sch:value-of select="../@id" /> - the object child element of an interface_test must reference an interface_object</sch:assert>
</sch:rule>
<sch:rule context="win-def:interface_test/win-def:state">
<sch:assert test="@state_ref=/oval-def:oval_definitions/oval-def:states/win-def:interface_state/@id">
<sch:value-of select="../@id" /> - the state child element of an interface_test must reference an interface_state</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:TestType">
<xsd:sequence>
<xsd:element name="object" type="oval-def:ObjectRefType" />
<xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|