This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
QT approved comment (General comment) in regular expressions defining permitted values for data types, the character "-" is sometimes preceded by "\" and sometimes not. The schema regex syntax, I believe, does not permit the "\".
(In reply to comment #0) > (General comment) in regular expressions defining permitted values for data > types, the character "-" is sometimes preceded by "\" and sometimes not. The > schema regex syntax, I believe, does not permit the "\". There was a time when there was a question of how to reconcile the use of '-' as a metacharacter in an seRange, and during that time some REs were written with escaped '-' characters. They need to be cleaned up, but they are essentially typos so we did not hold up Last Call to fix them.
I believe the premise of the comment is faulty: there is a single-character escape for "-" which can be used whenever "-" itself must be denoted, whether inside a character-class expression or outside it. Consistency and clarity need to be weighed, sometimes against each other. So I believe the correct resolution of this issue is as WORKSFORME.
The XML Schema WG discussed this issue at its telcon of 13 June 2008, and agreed that in view of the work we have recently done on regular expressions, which has removed some of the variation in the use of - in the lexical-space regular expressions, this issue should be closed as FIXED. We reminded ourselves that bug 5321 on the EBNF notation used to define the regex language is still open; MK pointed out that some confusion arises from the fact that the grammar notation uses some regex-like constructions, but not always exactly the same regex constructions as the regex language we are defining. The editors expressed a hope that we could reduce the opportunities for confusion by resolving 5321, which is classed editorial. Michael, if you would report this resolution to QT and indicate their acceptance or objection in the usual way, it would be helpful. Thank you.