W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2003

RE: MS-FO-LC1-011: Bad example with pattern on non-string type

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Mon, 21 Jul 2003 12:10:58 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB0984104D@red-msg-12.redmond.corp.microsoft.com>
To: "Michael Rys" <mrys@microsoft.com>, <public-qt-comments@w3.org>
Michael:

Thank you for your comment.  The taskforce agreed with you and decided
to change the example so as not to use a pattern.

All the best, Ashok 

________________________________

From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Michael Rys
Sent: Monday, June 09, 2003 6:15 PM
To: public-qt-comments@w3.org
Subject: MS-FO-LC1-011: Bad example with pattern on non-string type

 

Class: Editorial  

 

Section 6.2 Operators on Numeric Values uses the following example:

 

As another example, a user may define height as a derived type of
xs:integer with a minimum value of 20 and a maximum value of 100. He may
then derive oddHeight using a pattern to restrict the value to odd
integers.

 

 

Do not use an example with a pattern on a non-string type. Pattern
restrict the lexical space which leads to problems when there is no
1-to-1 correspondence (as pointed out in other parts of the spec).
Providing an example that does use a pattern in this way, may lead to
the believe that this is a safe and accepted use.

 

Proposed resolution: Remove or change this example.
Received on Monday, 21 July 2003 15:11:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:48 UTC