i have such boilerplate code in xsd schema.
<xs:attribute name="version" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="1.1"/>
<xs:enumeration value="1.2"/>
<xs:enumeration value="1.3"/>
<xs:enumeration value="1.4"/>
<xs:enumeration value="1.5"/>
<xs:enumeration value="1.6"/>
<xs:enumeration value="1.7"/>
<xs:enumeration value="1.8"/>
<xs:enumeration value="1.9"/>
<xs:enumeration value="1.10"/>
<xs:enumeration value="1.11"/>
<xs:enumeration value="1.12"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
that I simply want to replace with pattern as follows.
<xs:pattern value="1.[1-9]|[1-1][0-2]"/>
it passes the 1.2 or 1.6 but fails with "1.10". with lxml.etree.DocumentInvalid: Element 'sfd', attribute 'version': [facet 'pattern'] The value '1.10' is not accepted by the pattern '1.[1-9]|[1-1][0-2]'
I thought [1-9]|[1-1][0-2] represents the range between 1-9 and 10-12.
what is the problem?