2016-11-19 4 views
0

タイトルの状態として。 私が問題を抱えている主な部分は、要素が複数回表示されないようにすることです。何らかの理由で私はそれを理解することができません。私はminとmaxが問題を解決すると思った。XSD:任意の順序で指定することができ、複数回表示することはできない要素を作成する方法

ここに要素の仕様を示します。以下はこれまでのコードです。すべて要素:XSDで

<!-- 
     13.1. The element info has an optional updated element. If present, appears exactly once. 
     Represents the last day and time the feed was updated on your company’s servers. 
     13.2. The element info has an optional copyright element. If present, appears exactly once. 
     Represents the copyright holder of the feed data. 
     13.3. The element info has an optional location element. If present, appears exactly once. 
     Represents the physical location of the company with the feed. 
      13.3.1. These three elements can appear in any order, and all three are optional. 
    --> 
    <xs:element name="info" > 
     <xs:complexType mixed="true"> 
      <xs:choice minOccurs="0" maxOccurs="unbounded"> 
      <xs:element ref="target:updated" minOccurs="0" maxOccurs="1" /> 
      <xs:element ref="target:copyright" minOccurs="0" maxOccurs="1" /> 
      <xs:element ref="target:location" minOccurs="0" maxOccurs="1" /> 
      </xs:choice> 
     </xs:complexType> 
    </xs:element> 

答えて

関連する問題