regex problem in xsv

Hi, I have the following


<xsd:element name="ID" type="com:LanguageIDType"/>
<xsd:complexType name="LanguageIDType">
		<xsd:simpleContent>
			<xsd:restriction base="com:IdentifierType">
				<xsd:pattern value="[a-z]{2}"/>
				<xsd:attributeGroup
ref="com:commonSchemeAttributes"></xsd:attributeGroup> 
				<xsd:attributeGroup
ref="com:commonAttributes"></xsd:attributeGroup>
			</xsd:restriction>
		</xsd:simpleContent>
	</xsd:complexType>

which makes use of an imported type

<complexType name="IdentifierType" id="CCT000101">
		<simpleContent>
			<extension base="token">
				<attributeGroup
ref="com:commonSchemeAttributes"></attributeGroup> 
				<attributeGroup
ref="com:commonAttributes"></attributeGroup>
			</extension>
		</simpleContent>
	</complexType>

now inside of my document I have two ID elements, one with the value 'da',
and one with the value 'DA', other processors are catching the DA, but XSV
is telling me that both DA and da are wrong. Are we not allowed to restrict
a token with a regex? or is this a bug? Or is that an incorrect pattern?  2
characters, lowercase a-z ?!?

Received on Wednesday, 8 December 2004 13:58:13 UTC