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

[Bug 12657] Regex for durationLexicalRep in Lexical Mapping

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Jun 2011 01:11:34 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1QSIvG-0007aO-2h@jessica.w3.org>

C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com> changed:

           What    |Removed                     |Added
           Keywords|needsDrafting               |needsReview

--- Comment #5 from C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com> 2011-06-03 01:11:33 UTC ---
A proposal to resolve this issue is on the server at

  (member-only link)

and also in an attachment added to this bug report.

The following details are given for the benefit of those who wish to check the
correctness of the bug fix; others may skip them.

Three changes have been made in the source XML that generates the

(1) The regex has been reformatted to have shorter lines to make it easier to
identify the overall structure; at the same time, the optional
hour/minute/second portion of durations with years, months, or days fields has
been factored out so it appears only once.

(2) The bogus '?' following an initial D field has been deleted. 

(3) The bogus '?' following an initial M field in the hour/minute/second
portion of the expression has been deleted.

To make it slightly easier to check the changes, I give them here in source

(1) and (2) are visible here; the first 'eg' element is the status-quo text,
and the second is the proposed replacement.

<eg diff="del" dg="b12657">
<eg diff="add" dg="b12657">
-?P( ( ( &YY;&MM;?&DD;?
       | &MM;&DD;?
       | &DD;
  | (T ( &HH;&MM;?&SS;?
       | &MM;&SS;?
       | &SS;

(3) takes the form of correcting the definition of the 'oHMS' entity.  (At the
same time, the old declaration has been renamed oHMS0, and existing reference
to &oHMS; have been changed to references to &oHMS0; because otherwise the old
text would be silently corrected in several locations.)

<!--* oHMS:  optional time (hour minute seconds) segment *-->
<!ENTITY oHMS0 '(T(&HH;&MM;?&SS;?|&MM;?&SS;?|&SS;))?'>
<!ENTITY oHMS '(T ( &HH;&MM;?&SS;?
          | &MM;&SS;?
          | &SS;

(If you're still reading, the editors thank you for your help in verifying the
correctness of the change.)

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 3 June 2011 01:11:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:11 UTC