XML technologies / XML Schema / XML Schema element reference / xs:minExclusive
(Excerpt from “XML Schema” by Eric van der Vlist)
Facet specifying an exclusive minimum value.
<xs:minExclusive
fixed = xs:boolean : "false"
id = xs:ID
value = anySimpleType
{beliebige Attribute mit einem Nicht-Schema-Namensraum}
>
Content: (xs:annotation?)
</xs:minExclusive>May occur within: xs:restriction (simple type), xs:restriction (simple content)
May be used as a facet for: xs:byte, xs:date, xs:dateTime, xs:decimal, xs:double, xs:duration, xs:float, xs:gDay, xs:gMonth, xs:gMonthDay, xs:gYear, xs:gYearMonth, xs:int, xs:integer, xs:long, xs:negativeInteger, xs:nonNegativeInteger, xs:nonPositiveInteger, xs:positiveInteger, xs:short, xs:time, xs:unsignedByte, xs:unsignedInt, xs:unsignedLong, xs:unsignedShort
Description
xs:minExclusive specifies an exclusive minimum value. To be valid, a value must be strictly greater than the value of xs:minExclusive.
This facet affects the value space.
Restrictions
It is forbidden to define both xs:minExclusive and xs:minInclusive within the same restriction step. Although not explicitly stated in the recommendation, defining several xs:minExclusive facets within one restriction step is also meaningless.
Within a restriction step, xs:minExclusive also interacts with xs:maxExclusive and xs:maxInclusive , since inconsistent values produce data types with empty value spaces.
xs:minExclusive must restrict its base type’s value space, and the facet value must belong to that space.
Fixing the xs:minExclusive facet does not fix the xs:minInclusive facet. Use two restriction steps to define both facets, since applying both in the same step is forbidden.
Example
<xs:simpleType name="afterTeaTimeInParisInSummer">
<xs:restriction base="xs:time">
<xs:minExclusive value="17:00:00+02:00"/>
</xs:restriction>
</xs:simpleType>Attributes
fixed
If the value is true, this facet’s value cannot be modified in further restrictions.
id
Element ID according to W3C XML Schema.
value
Facet value, which must belong to the base type’s value space.
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de