W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2004

[Fwd: [Moderator Action] Re: 2.3 Simple Types]

From: C. M. Sperberg-McQueen <cmsmcq@acm.org>
Date: 26 Jan 2004 17:05:14 -0700
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
Message-Id: <1075161913.2638.20.camel@localhost>


attached mail follows:




Hi,

As someone trying to learn XML & XML Schema from the specifications I have
the following minor observation. I'd like to add that the XML Schema Primer
is generally very accessible and a valuable text.

The paragraph about pattern facet (below) refers to ASCII characters, I find
this confusing as other XML definitions are always given in term of
Unicode - I understand that ASCII is a possible supported encoding of the
XML Unicode characters (but not manditory for all parsers - only UTF-8 &
UTF-16 are manditory?). I therefore think it would be more appropriate to
change the reference to Unicode.

'The purchase order schema contains another, more elaborate, example of a
simple type definition. A new simple type called SKU is derived (by
restriction) from the simple type string. Furthermore, we constrain the
values of SKU using a facet called pattern in conjunction with the regular
expression "\d{3}-[A-Z]{2}" that is read "three digits followed by a hyphen
followed by two upper-case ASCII letters":'

Your thoughts on this matter would be appreciated.

Regards,

Mark
Received on Monday, 26 January 2004 19:14:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:33 GMT