<xsd:element name="type" type="win-def:EntityStateFileTypeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The type element marks whether the file is a directory, named pipe, standard file, etc. These types are the return values for GetFileType, with the exception of FILE_ATTRIBUTE_DIRECTORY which is obtained by looking at GetFileAttributesEx. NOTE: Should this entity be split into two in future versions of the language as there are other values associated with GetFileAttributesEx that are not represented here?</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="filestetype" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:file_state/win-def:type">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the type entity of a file_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
|