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 6310 - [XQX11] positionalVariableBinding should be optiuonal in windowVars
Summary: [XQX11] positionalVariableBinding should be optiuonal in windowVars
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQueryX 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2008-12-15 01:39 UTC by Andrew Eisenberg
Modified: 2009-01-13 23:11 UTC (History)
0 users

See Also:


Description Andrew Eisenberg 2008-12-15 01:39:12 UTC
The XQueryX 1.1 schema contains the following:

  <xsd:complexType name="windowVars">
      <xsd:element name="currentItem" type="QName" minOccurs="0"/>
      <xsd:element ref="positionalVariableBinding"/>
      <xsd:element name="previousItem" type="QName" minOccurs="0"/>
      <xsd:element name="nextItem" type="QName" minOccurs="0"/>

  <xsd:element name="windowVars" type="windowVars"/>

This definition reflects the following XQuery 1.1 production:

[51]    WindowVars   ::=   ("$" CurrentItem)? PositionalVar? ("previous" "$" PreviousItem)? ("next" "$" NextItem)?

I believe that minOccurs="0" should be added to the positionalVariableBinding element.
Comment 1 Jim Melton 2009-01-13 01:08:21 UTC
I agree and have made the change that you suggested.  I've marked the bug FIXED.  If this satisfies your comment, please mark the bug CLOSED.