Lista e União

xsd para o Tipo

Listar:
<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>
Listar:
<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>
União:
<xsd:simpleType name=""zipUnion"">
  <xsd:union memberTypes=""USState listOfMyIntType""/>
</xsd:simpleType>

Elemento

Listar:
<element name="listOfMyInt" type="listOfMyIntType"/>
Listar:
<element name="sixStates" type="SixUSStates"/>
União:
<element name="zips" type="zipUnion"/>

Instância

Listar:
<listOfMyInt>20003 15037 95977 95945</listOfMyInt>
Listar:
<sixStates>PA NY CA NY LA AK</sixStates>
União:
<zips>CA</zips>
<zips>95630 95977 95945</zips>
<zips>AK</zips>

Processamento

Listar:
+ myInteger (restrição de
  xsd:integer )
+ listOfMyIntType
+ listOfMyInt
Listar:
USStates
USStateList
SixUSStates
sixStates"
União:
zipUnion
zips
Tarefas relacionadas
Desenvolvendo Mapeamentos de Mensagens
Avisos | Marcas Registradas | Downloads | Biblioteca | Suporte | Feedback
Direitos Autorais IBM Corporation 1999, 2005 Última Atualização: 04/11/2005
ar25240_4_