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

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

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

xs:maxExclusive defines a maximum value that can be reached

   <source lang="xml">

File: Data.xml <?xml version="1.0"?>

1999-01-01T00:00:00Z

File: Schema.xsd

<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

 targetNamespace="http://www.wbex.ru" xmlns="http://www.wbex.ru"
 elementFormDefault="qualified">
   <xsd:element name="data" type="beforeY2K" />
 <xsd:simpleType name="beforeY2K">
   <xsd:restriction base="xsd:dateTime">
     <xsd:maxExclusive value="2000-01-01T00:00:00Z" />
   </xsd:restriction>
 </xsd:simpleType>

</xsd:schema>

</source>