XML Tutorial/XML Schema/short — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 11:26, 26 мая 2010

The short data type is derived from the int type.

   <source lang="xml">

The value space is integer values from ?768 up to and including 32767. The lexical space is a finite-length sequence of decimal digits with an optional leading - or +.

<xsd:complexType name="shortlist">

 <xsd:sequence>
  <xsd:element name="event" minOccurs="0" maxOccurs="unbounded">
   <xsd:complexType>
    <xsd:complexContent>
     <xsd:extension base="xsd:anyType">
      <xsd:attribute name="recur" type="xsd:short"/>
     </xsd:extension>
    </xsd:complexContent>
   </xsd:complexType>
  </xsd:element>
 </xsd:sequence>

</xsd:complexType>

<event recur="365">A</event> <event recur="365">B</event> <event recur="250">C</event></source>