xsd可以限定属性的值吗?该怎么处理

xsd可以限定属性的值吗?
xs:attribute下面不能用xs:restriction,那怎么限定属性的值?还是就不能限定需要改成元素?
------解决方案--------------------
<xs:attribute name="carType">
<xs:annotation>用法如下</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Audi"/>
<xs:enumeration value="Golf"/>
<xs:enumeration value="BMW"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>