xml schema 循环定义的问题
http://topic.csdn.net/u/20090722/11/2a11325a-83ee-4b0d-bbc5-bf7d1e8da23e.html?seed=2001943344&r=58569716#r_58569716
我要吐血了, 这个问题在xml版挂了两天,竟然一个回复都没有.. 真是冷清阿.. 只能回c版问了
<xs:complexType name="MethodParameterType" mixed="true" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:sequence>
<xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="MethodParameterType">
<xs:attribute name="Name" type="PropertyNameType" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="Object" type="MethodParameterType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ObjectPathId" type="ObjectPathIdType" use="optional"/>
<xs:attribute name="TypeId" type="TypeIdGuidType" use="optional"/>
<xs:attribute name="Type" type="MethodParameterTypeType" use="optional"/>
</xs:complexType>
在这一段schema 中,有两个MethodParameterType,其中一个是属性对它的扩展, 请问这样定义有问题吗?
错在哪里?