Character classes in XML Schema

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 UTC