Liste und Datentypvariable

xsd für Typ

Liste:
<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>
Liste:
<xsd:simpleType name=""USState"">
  <xsd:restriction base=""xsd:string"">
    <xsd:enumeration value=""AK""/>
    <xsd:enumeration value=""AL""/>
    <xsd:enumeration value=""AR""/>
    <!-- usw. ... -->
  </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>
Datentypvariable:
<xsd:simpleType name=""zipUnion"">
  <xsd:union memberTypes=""USState listOfMyIntType""/>
</xsd:simpleType>

Element

Liste:
<Elementname="listOfMyInt" Typ="listOfMyIntType"/>
Liste:
<Elementname="sixStates" Typ="SixUSStates"/>
Datentypvariable:
<Elementname="zips" Typ="zipUnion"/>

Instanz

Liste:
<listOfMyInt>20003 15037 95977 95945</listOfMyInt>
Liste:
<sixStates>PA NY CA NY LA AK</sixStates>
Datentypvariable:
<zips>CA</zips>
<zips>95630 95977 95945</zips>
<zips>AK</zips>

Wiedergabe

Liste:
+ myInteger (Einschränkung von  xsd:integer )
+ listOfMyIntType
+ listOfMyInt
Liste:
USStates
USStateList
SixUSStates
sixStates"
Datentypvariable:
zipUnion
zips
Zugehörige Tasks
Nachrichtenzuordnungen entwickeln
Bemerkungen | Marken | Downloads | Bibliothek | Unterstützung | Rückmeldung
Copyright IBM Corporation 1999, 2005 Letzte Aktualisierung: Nov 17, 2005
ar25240_4_