[xsl] [XSD] Possible to ignore case in pattern restric tion?

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

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="(

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


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