Purpose |
This element is a restriction facet used to specify an exclusive upper bound as a constraint of the value space for a data item. The actual value of the constraint is given by the
|
Parent element | xs:restriction |
Child elements | None |
Attributes | fixed ,
value |
Restrictions |
The following restrictions apply to the
|
Name | Type | Description |
---|---|---|
fixed |
xs:boolean |
If "true", the value of this facet must not be changed in a derived type. Default: "false". |
value |
The type of the xs:maxExclusive
element depends on the base of the restriction.
|
The value attribute
specifies the maximum value of the restricted type. The exact value of the
value attribute is excluded from the value
space.
|
The following example shows a simple type definition based on a
restriction using the xs:maxExclusive
element:
<xs:simpleType name="upto50"> <xs:restriction base="xs:integer"> <xs:maxExclusive value="51"/> </xs:restriction> </xs:simpleType>
The value space of the simple type "upto50" is restricted to values less than 51. This means 50 is the largest allowed element in this value space.