XML/XML Schema/float
Версия от 21:22, 25 мая 2010; (обсуждение)
Simpel type based on xs:float
<source lang="xml">
File: Data.xml <?xml version="1.0"?>
1.6
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="maxExclusive"/> <xsd:simpleType name="maxExclusive"> <xsd:restriction base="xsd:float"> <xsd:maxExclusive value="10" /> </xsd:restriction> </xsd:simpleType>
</xsd:schema>
</source>