Maps to a UML Attribute with the stereotype XSDlength. The name and type of such an attribute do not make sense.
- value – to Attribute initial value.
Length XML representation summary
<length
fixed = boolean : false
id = ID
value = nonNegativeInteger
{any attributes with non-schema namespace…}>
Content: (annotation?)
</length>
Length XML code sample
The following is the definition of a user-derived datatype to represent product codes which must be exactly 8 characters in length.
By fixing the value of the length facet, we ensure that the type derived from productCode can change or set the values of other facets,
such as pattern, but cannot change the length.
<simpleType name= 'productCode' >
<restriction base='string'>
<length value='8' fixed='true'/>
</restriction>
</simpleType>