XML/XML Schema/minExclusive — различия между версиями
(нет различий)
|
Версия 21:22, 25 мая 2010
xs:minExclusive defines a minimum value that cannot be reached
<source lang="xml">
File: Data.xml
<?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="strictlyPositive"/> <xsd:simpleType name="strictlyPositive"> <xsd:restriction base="xsd:double"> <xsd:minExclusive value="0" /> </xsd:restriction> </xsd:simpleType>
</xsd:schema>
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="strictlyPositive"/> <xsd:simpleType name="strictlyPositive"> <xsd:restriction base="xsd:double"> <xsd:minExclusive value="0" /> </xsd:restriction> </xsd:simpleType>
</xsd:schema>
</source>