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

[XSD] Possible to ignore case in pattern restriction?

Subject: [XSD] Possible to ignore case in pattern restriction?
From: "Petersen Rasmus"<RAP@xxxxxx>
Date: 18 Feb 2003 15:16:00 +0100
xsd ignore case
Hi,

Take a looke at this schema which defines a simpleType for email-addresses
Now i wonder if it's possible to have the pattern be case-IN-sensitive??

Normally I would do something like: ([a-z]{4}/i/)

But would that work (read is it supported by any w3 standard)??


<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:simpleType name="email">
		<xs:restriction base="xs:string">
			<xs:whiteSpace value='collapse'/>
			<xs:pattern value="(
				[a-z0-9]
				([a-z0-9_\.]*)
				@
				([a-z0-9_\.]*)
				([.]([a-z]{2}|
				(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro)))
			)"/>
		</xs:restiction>
	</xs:simpleType>
</xs:schema>

If not then I foresee a typing hell makeing the domain names case-insensitive


/Rasmus

---------------------------------------------------------------------------
Danmarks Statistik (Statistics Denmark)
Sejrogade 11, DK-2100 Kobenhavn O
Tel. +45 39173917, Fax +45 39173999
dst@xxxxxx, www.dst.dk
---------------------------------------------------------------------------

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.