W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2005

Character classes in XML Schema

From: Richard Smith <richard@ex-parrot.com>
Date: 26 May 2005 16:46:18 -0600
To: www-xml-schema-comments@w3.org
Message-ID: <Pine.LNX.4.58.0505201349590.28812@sphinx.mythic-beasts.com>





I've spotted two things in section H.1 of the current
working draft of the "XML Schema 1.1 Part 2: Datatypes"
specification that I think may be mistakes.

First (and trivially) the third bullet point immediately
below production [62] (XmlCharIncDash) has no text.  In the
1.0 specification this reads:

| The - character is a valid character range only at the
| beginning or end of a positive character group.

Secondly (and less obviously), the first bullet point of
that list reads:

| The [, ], - and \ characters are not valid character
| ranges

(This is the same in both 1.0 and the current 1.1 draft.)

This seems to contradict the third bullet point: the first
point says '-' is never a valid character range; the third
point goes on to specify situations in which it *is* a valid
character range.  It seems to me that there is no reason for
'-' to be listed in this bullet point at all as it is dealt
with fully by the third point.

Cheers,

Richard Smith
Received on Thursday, 26 May 2005 22:46:37 GMT

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