Purpose |
This element is a restriction facet used to specify an inclusive minimum 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 value of the
The |
The following example shows a simple type definition based on a
restriction using the xs:minLength
element:
<xs:simpleType name="input-field"> <xs:restriction base="xs:string"> <xs:minLength value="8"/> </xs:restriction> </xs:simpleType>
This defines a string to be used as an input field with a length of at least 8 characters.