Purpose |
This element is a restriction facet that specifies an inclusive maximum length constraint 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:
|
Name | Type | Description |
---|---|---|
fixed |
xs:boolean |
If "true", the value of this facet must not be changed in a derived type. Default: "false". |
value |
xs:nonNegativeInteger |
The The value of the
|
The following example shows a simple type definition based on a
restriction using the xs:maxLength
element. The string length is
restricted to 80 characters:
<xs:simpleType name='input-field'> <xs:restriction base='xs:string'> <xs:maxLength value='80'/> </xs:restriction> </xs:simpleType>