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 19292 - [QT3TS] ccontextDecl-035
Summary: [QT3TS] ccontextDecl-035
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 14:52 UTC by Tim Mills
Modified: 2012-10-10 10:06 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2012-10-05 14:52:23 UTC
The declaration

 declare context item as xs:integer+ := (1 to 17)[position() = 5];

in this test is syntactically invalid.

[31]    	ContextItemDecl 	   ::=    	"declare" "context" "item" ("as" ItemType)? ((":=" VarValue) | ("external" (":=" VarDefaultValue)?))

The type can only be an ItemType, not a SequenceType.
Comment 1 Michael Kay 2012-10-05 16:50:58 UTC
Fixed.
Comment 2 Tim Mills 2012-10-10 10:06:26 UTC
Thanks.