リストおよび共用体

タイプの xsd

リスト:
<xsd:simpleType name=""myInteger"">
  <xsd:restriction base=""xsd:integer"">
    <xsd:minInclusive value=""10000""/>
    <xsd:maxInclusive value=""99999""/>
  </xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name=""listOfMyIntType"">
  <xsd:list itemType=""myInteger""/>
</xsd:simpleType>
リスト:
<xsd:simpleType name=""USState"">
  <xsd:restriction base=""xsd:string"">
    <xsd:enumeration value=""AK""/>
    <xsd:enumeration value=""AL""/>
    <xsd:enumeration value=""AR""/>
    <!-- and so on ... -->
  </xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name=""USStateList"">
 <xsd:list itemType=""USState""/>
</xsd:simpleType>

<xsd:simpleType name=""SixUSStates"">
 <xsd:restriction base=""USStateList"">
  <xsd:length value=""6""/>
 </xsd:restriction>
</xsd:simpleType>
ユニオン:
<xsd:simpleType name=""zipUnion"">
  <xsd:union memberTypes=""USState listOfMyIntType""/>
</xsd:simpleType>

エレメント

リスト:
<element name="listOfMyInt" type="listOfMyIntType"/>
リスト:
<element name="sixStates" type="SixUSStates"/>
ユニオン:
<element name="zips" type="zipUnion"/>

インスタンス

リスト:
<listOfMyInt>20003 15037 95977 95945</listOfMyInt>
リスト:
<sixStates>PA NY CA NY LA AK</sixStates>
ユニオン:
<zips>CA</zips>
<zips>95630 95977 95945</zips>
<zips>AK</zips>

レンダリング

リスト:
+ myInteger (restriction of
  xsd:integer )
+ listOfMyIntType
+ listOfMyInt
リスト:
USStates
USStateList
SixUSStates
sixStates"
ユニオン:
zipUnion
zips
関連タスク
メッセージ・マッピングの開発
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック
Copyright IBM Corporation 1999, 2005 Last updated: 11/07/2005
ar25240_4_