This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26760 - parse-ietf-date() grammar error
Summary: parse-ietf-date() grammar error
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2014-09-09 01:24 UTC by Liam R E Quin
Modified: 2014-09-09 18:40 UTC (History)
0 users

See Also:


Description Liam R E Quin 2014-09-09 01:24:48 UTC
The description of parse-ietf-date() has a minor grammar error and a typo.

The typo - parse-ietf-dateTime should read parse-ietf-date

The grammar error

  input ::= S? dayname? ","? S ((datespec S time) | asctime) S?
should (I think) be
  input ::= S? (dayname ","? S)? ((datespec S time) | asctime) S?

(probably my mistake originally, sorry)
Comment 1 Michael Kay 2014-09-09 18:40:12 UTC
The WG agreed this should be fixed.

As well as the changes indicated, I have taken the liberty of improving the suggestion in the non-normative note concerning how to generate an IETF date using format-dateTime. Rather than using [Z0] to format the timezone and then stripping the colon afterwards, the timezone can be generated in the correct format using [Z0000].
Comment 2 Michael Kay 2014-09-09 18:40:32 UTC
The changes have been applied.