<xs:simpleType name="languageIndicatorType" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:restriction base="xs:string"> <xs:maxLength value="20" /> <xs:pattern value="\b(ENGLISH|FRENCH)\b|^([A-z]{2,3}-[A-z]{2,3})(-[A-z]{2,3})?$" /> </xs:restriction> </xs:simpleType>