我想写一个xml如下:
<config>
    <propety id="usercount">10</propety>
    <propety id="filecount">10</propety>
</config>
为了给这些xml写一个xsd文件,来约束这个xml,但是文凭只会歌复合元素定义属性, 不会给简单元素定义属性。我的xsd文件如下,
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- 简易属性定义 -->
<xs:attribute name="id"  type="xs:string" /> <!-- 简易元素定义 -->
<xs:element name="propety" type="xs:int"/>

<!-- 符合元素定义 -->
<xs:element name="config" >
<xs:complexType>
<xs:sequence>
<xs:element ref="propety" maxOccurs="2">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
但是我的xml的中提示我没有给propety定义这个id属性,如何给简单元素定义一些属性。