[Bug 27338] New: fn:parse-ietf-date

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27338

            Bug ID: 27338
           Summary: fn:parse-ietf-date
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: christian.gruen@gmail.com
        QA Contact: public-qt-comments@w3.org

The following tests for fn:parse-ietf-date may need to be fixed (maybe, the F&O
3.1 spec needs to be updated instead):

* parse-ietf-date-15

Test environment:
 <param name="d" as="xs:dateTime"
select="xs:dateTime('2014-08-20T19:36:01Z')"/> 

Correct:
 <param name="d" as="xs:dateTime"
select="xs:dateTime('2014-09-09T19:36:01Z')"/> 


* parse-ietf-date-16

Test string:
  ... "Tue,  9 Sep 2014 19:36:01 GMT" ...

Grammar in XQ31 F&O spec only allows single spaces (S?).


* parse-ietf-date-19

Test string:
  ... "Aug-20-2014 19:36" ...

Conflicts with the spec:

  input    ::=  ... (datespec S time) | asctime ...
  datespec ::=  daynum dsep monthname dsep year
  asctime  ::=  monthname dsep daynum S time S year


* parse-ietf-date-20, parse-ietf-date-21, parse-ietf-date-22,
parse-ietf-date-23

Conflicts with the spec (see above).


* parse-ietf-date-errs9

Test string:
  ... "Fri, 28 Feb -2000 19:36:01 GMT" ...

Is correct, according to the grammar in the spec.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 16 November 2014 14:08:26 UTC