XML Tutorial/XML Schema/negativeInteger

Материал из Web эксперт
Версия от 11:26, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

The negativeInteger data type is derived from the nonPositiveInteger type.

   <source lang="xml">

The value space is the infinite set of integer values less than or equal to ? The lexical space is a finite-length sequence of decimal digits preceded by a -.


<xsd:simpleType name="myType">

 <xsd:restriction base="xsd:negativeInteger">
  <xsd:pattern value="-\d{2}"/>
 </xsd:restriction>

</xsd:simpleType>

<myType>-49</myType></source>