Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


disregard was Re: regex problem in xsv

From: Bryan Rasmussen <brs@----.-->
To: xmlschema-dev@--.---
Date: 12/8/2004 4:08:00 PM


Sorry, I'd totally forgotten I was editing the schema fragment in my xslt
schema generator, so the {} of course got interpreted by the xslt.

-----Oprindelig meddelelse-----
Fra: Bryan Rasmussen 
Sendt: 8. december 2004 14:58
Til: xmlschema-dev@w...
Emne: 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 ?!?

From dmmorris@g... Wed Dec 08 17:24:49 2004
Received: from lisa.w3.org ([128.30.52.41


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent