XML/XML Schema/minExclusive
Версия от 18:22, 25 мая 2010; (обсуждение)
xs:minExclusive defines a minimum value that cannot be reached
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>