Bug 6310 - [XQX11] positionalVariableBinding should be optiuonal in windowVars
[XQX11] positionalVariableBinding should be optiuonal in windowVars
Status: CLOSED FIXED
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQueryX 3.0
Working drafts
PC Windows XP
: P2 normal
: ---
Assigned To: Jim Melton
Mailing list for public feedback on specs from XSL and XML Query WGs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-15 01:39 UTC by Andrew Eisenberg
Modified: 2009-01-13 23:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg 2008-12-15 01:39:12 UTC
The XQueryX 1.1 schema contains the following:

  <xsd:complexType name="windowVars">
    <xsd:sequence>
      <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:sequence>
  </xsd:complexType>

  <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.