length facet
Monday, March 29, 2010
2:03 PM
length
must often know how long one's input can be
 <xs:simpleType name="shortString">
  <xs:restriction base="xs:string">
    <xs:maxLength value="10"/>
  </xs:restriction>
 </xs:simpleType>

xs:restriction: defines base type to restrict (xs:string).
xs:maxLength: only 10 characters.
Pasted from <[link]> 