<xs:simpleType name="password"> <xs:restriction base="xs:string"> <xs:minLength value="4"/> <xs:maxLength value="64"/> </xs:restriction> </xs:simpleType>