|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [XSD] Possible to ignore case in pattern restriction?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








