<xsd:element name="sid_sid_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>The sid_sid_test is used to check properties associated with the specified sid. 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 a sid_sid_object and the optional state element specifies the metadata to check. The evaluation of the test is guided by the check attribute that is inherited from the TestType.</xsd:documentation>
<xsd:documentation>Note that this sid_sid test was added in version 5.4 as a temporary fix. There is a need within the community to identify things like users and groups by both the name and the sid. For version 6 of OVAL, work is underway for a better solution to the problem, but for now, a second test was added to satisfy the need.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="sidsidtst" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sid_sid_test/win-def:object">
<sch:assert test="@object_ref=/oval-def:oval_definitions/oval-def:objects/win-def:sid_sid_object/@id">
<sch:value-of select="../@id" /> - the object child element of a sid_sid_test must reference a sid_sid_object</sch:assert>
</sch:rule>
<sch:rule context="win-def:sid_sid_test/win-def:state">
<sch:assert test="@state_ref=/oval-def:oval_definitions/oval-def:states/win-def:sid_sid_state/@id">
<sch:value-of select="../@id" /> - the state child element of a sid_sid_test must reference a sid_sid_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>
|