I wrote XML type in my XSD file:
<xs:simpleType name="refId">
<xs:restriction base="xs:ID">
<xs:maxLength value="30"/>
<xs:minLength value="5"/>
<xs:pattern value="^ref-"/>
</xs:restriction>
</xs:simpleType>
All values must start with "ref-" text. But I get incorrect result for string: "ref-title". Why does this happen?