我收到一个错误:
Src-resolve:无法将名称“variable1”解析为 A(n)“类型定义”组件。
通过验证以下方案:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
...
<xs:element name="variables" maxOccurs="1">
<xs:complexType>
<xs:annotation>
<xs:documentation>AWK external variables (from bash)</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="variable" type="variable" minOccurs="1"/>
<xs:complexType name="variable">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:sequence>
</xs:complexType>
</xs:element>
...
</xs:schema>
有什么问题?我想将全局复杂类型“ ”定义为此处描述
variable
的“ ”:http: //www.ibm.com/developerworks/library/xml-schema/#list9BookType