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 6295 - [XQuery 1.1] "count" as first clause in FLWOR
Summary: [XQuery 1.1] "count" as first clause in FLWOR
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
: 13493 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-10 12:16 UTC by Michael Kay
Modified: 2013-06-19 08:29 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2008-12-10 12:16:00 UTC
In the XQuery 1.1 draft dated 3 Dec 2008, the grammar has

[40]    	FLWORExpr 	   ::=    	InitialClause IntermediateClause* ReturnClause
[41]    	InitialClause 	   ::=    	ForClause | LetClause | WindowClause

but the prose says (last para before 3.8.1)

"The initial clause in a FLWOR expression may be a for, let, window, or count clause."
Comment 1 John Snelson 2009-02-17 18:56:00 UTC
The WG agreed to remove the CountClause from the InitialClause - the prose obviously needs updating in line with the grammar.
Comment 2 Jonathan Robie 2009-02-23 20:05:48 UTC
You're right, my bad. I'll fix it.
Comment 3 Michael Kay 2013-06-19 08:29:20 UTC
*** Bug 13493 has been marked as a duplicate of this bug. ***