<xsd:complexType name="EntityItemBaseType" abstract="true">
<xsd:annotation>
<xsd:documentation>The EntityItemBaseType complex type is an abstract type that defines the default attributes associated with every entity. The optional datatype determines the type of data expected. (the default datatype is 'string') Note that the datatype attribute simply defines the type of data as found on the system, it is not used during evaluation. An OVAL Definition defines how the data should be interpreted during analysis. If the definition states a datatype that is different than what the system characteristics presents, then a type cast must be made. The optional mask attribute is used to identify values that have been hidden for sensitivity concerns. This is used by the result file which uses the system characateristic schema to format the information found on a specific system. If the original definition set the mask attribute of an entity to 'true', then value obtained from the system should not be presented in the results file. A system characteristics file that is not held within a results file should not use the mask attribute. The optional status attribute holds information regarding the success of the data collection. For example, if there was an error collecting a particular piece of data, then the status would be 'error'.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="entitystatus" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="oval-sc:system_data/*/*">
<sch:assert test="not(@status) or @status='exists' or .=''">item <sch:value-of select="../@id" /> - a value for the <sch:value-of select="name()" /> entity should only be supplied if the status attribute is 'exists'</sch:assert>
<sch:assert test="not(@mask) or @mask='false' or .=''">item <sch:value-of select="../@id" /> - a value for the <sch:value-of select="name()" /> entity should only be supplied if the mask attribute is 'false'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:anySimpleType">
<xsd:attribute name="datatype" type="oval:DatatypeEnumeration" use="optional" default="string" />
<xsd:attribute name="mask" type="xsd:boolean" use="optional" default="false" />
<xsd:attribute name="status" type="oval-sc:StatusEnumeration" use="optional" default="exists" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
|