Attempting to install the relevant ISO 2- and 3-letter codes as the enumerated possible values is probably never going to be a realistic possibility. See RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry at http://www.iana.org/assignments/lang-tag-apps.htm for further information. The union allows for the 'un-declaration' of xml:lang with the empty string.
Source
<xs:element name="resourceName"><xs:annotation><xs:documentation xml:lang="en">Introduces a human-readable name or title by which the resource is known</xs:documentation><xs:appinfo><identifier>http://w3id.org/meta-share/meta-share/resourceName</identifier><label xml:lang="en">resource name</label><example xml:lang="en">British National Corpus</example></xs:appinfo></xs:annotation><xs:complexType><xs:simpleContent><xs:restriction base="ms:langString"><xs:maxLength value="300"/></xs:restriction></xs:simpleContent></xs:complexType></xs:element>