1
내가 스키마를 만드는 방법에 대한 일하고 있어요,하지만 이러한 속성
의 xsd : 아이들과 함께 복합 타입, 속성 및 제한
에, 아이가 속성 복합 타입으로 및 제한을 정의 내 루트 요소 근처에 갇히지하고
이 은 (블라인드 형식)
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsd:element name="foos">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="foo" type="FooType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="FooType">
<xsd:attribute name="exchangeType" type="xsd:string" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="S" />
<xsd:enumeration value="T" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:sequence>
<xsd:element name="thing1" type="Thing1Type" />
<xsd:element name="thing2" type="Thing2Type" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
내가
어떤 생각이 속성을 통합 할 수있는 방법을 발견하고 그 제한 문제가 봤는데 .... 내가 지금까지 시도한 것입니다 에스?
감사합니다, @kjhughes이 많이 있습니다 더 많은 감각과 내가이 접근하는 방법에 필요한 명확성입니다 – kmancusi