The following seems to work for MM-YYYY format but I now have a case where it can either be blank or have a date. Is this possible or should I push to only include the attribute in the XML if there is a date and make the attribute optional?
<xs:attribute name="edition_date" use="required">
<xs:simpleType>
<xs:restriction base="AT_STR">
<xs:length value="7"/>
<xs:pattern value="(0[1-9]|1[012])[-](19|20)\d\d"/>
</xs:restriction>
</xs:simpleType>