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

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

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

The nonPositiveInteger datatype is derived from the integer type

   <source lang="xml">

The value space is the infinite set of integers less than and including zero. The lexical space is a finite-length sequence of decimal digits preceded by a -.

<xsd:simpleType name="BC">

 <xsd:restriction base="xsd:nonPositiveInteger">
  <xsd:minInclusive value="unbounded"/>
  <xsd:maxInclusive value="-2001"/>
 </xsd:restriction>

</xsd:simpleType>

<BC>-1111</BC></source>