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

[Bug 12657] New: Regex for durationLexicalRep in 3.3.7.2 Lexical Mapping

From: <bugzilla@jessica.w3.org>
Date: Sat, 14 May 2011 15:16:38 +0000
To: www-xml-schema-comments@w3.org
Message-ID: <bug-12657-703@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12657

           Summary: Regex for durationLexicalRep in 3.3.7.2 Lexical
                    Mapping
           Product: XML Schema
           Version: 1.1 only
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Datatypes: XSD Part 2
        AssignedTo: David_E3@VERIFONE.com
        ReportedBy: saasha@acc.umu.se
         QAContact: www-xml-schema-comments@w3.org
                CC: cmsmcq@blackmesatech.com


Hello!

According to
http://www.w3.org/TR/xmlschema11-2/#nt-durationRep the regex should "satisfy
all of the following three" requirements:

> the fields occur in the proper order.

> at least one field occurs.

> 'T' is not the final character

The regex given thereafter (on six lines) does not seem to satisfy the second
requirement. It seems that five question marks need to be removed from the
regex. In other words, replacing

|([0-9]+D)?(

by

|([0-9]+D)(

and the four occurrences of

|([0-9]+M)?(

by

|([0-9]+M)(

seems to solve the problem.

Regards!

Saašha,

-- 
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 Saturday, 14 May 2011 15:16:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 14 May 2011 15:16:41 GMT