<xsd:element name="snmp_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>Tests if lines under the global context associated with snmp that have a specifiec access list or cmmunity name.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="snmptst" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ios-def:snmp_test/ios-def:object">
<sch:assert test="@object_ref=/oval-def:oval_definitions/oval-def:objects/ios-def:snmp_object/@id">
<sch:value-of select="../@id" /> - the object child element of a snmp_test must reference a snmp_object</sch:assert>
</sch:rule>
<sch:rule context="ios-def:snmp_test/ios-def:state">
<sch:assert test="@state_ref=/oval-def:oval_definitions/oval-def:states/ios-def:snmp_state/@id">
<sch:value-of select="../@id" /> - the state child element of a snmp_test must reference a snmp_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" minOccurs="1" maxOccurs="1" />
<xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|