[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

disregard was Re: regex problem in xsv

From: Bryan Rasmussen <brs@itst.dk>
Date: Wed, 8 Dec 2004 15:08:27 +0100
Message-ID: <D45A5694803BE943BA46F9A7262BF83D123499@its42.itst.local>
To: xmlschema-dev@w3.org
disregard was Re: regex problem in xsv



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@w3.org
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 ?!?
Received on Wednesday, 8 December 2004 14:09:31 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.