[Bug 12657] Regex for durationLexicalRep in 3.3.7.2 Lexical Mapping

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12657

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

  http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.b12657.html
  (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
specification.

(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
form:

(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">
-?P(&YY;&MM;?&DD;?&oHMS0;
   |&MM;&DD;?&oHMS0;
   |&DD;?&oHMS0;
   |T(&HH;&MM;?&SS;?
     |&MM;?&SS;?
     |&SS;))</eg>
<eg diff="add" dg="b12657">
-?P( ( ( &YY;&MM;?&DD;?
       | &MM;&DD;?
       | &DD;
       )
       &oHMS;
    )
  | (T ( &HH;&MM;?&SS;?
       | &MM;&SS;?
       | &SS;
       )
    )
  )
</eg>

(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