[Bug 6311] New: [XQX11] wndowVars is optional in the XQueryX 1.1 schema

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6311

           Summary: [XQX11] wndowVars is optional in the XQueryX 1.1 schema
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX 1.1
        AssignedTo: jim.melton@acm.org
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org


windowVars is optional in the two definitions that reference it:

  <xsd:complexType name="windowStartCondition">
    <xsd:sequence>
      <xsd:element ref="windowVars" minOccurs="0"/>
      <xsd:element name="winStartExpr" type="exprWrapper"/>
    </xsd:sequence>
  </xsd:complexType>

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

  <xsd:complexType name="windowEndCondition">
    <xsd:sequence>
      <xsd:element ref="windowVars" minOccurs="0"/>
      <xsd:element name="winEndExpr" type="exprWrapper"/>
    </xsd:sequence>
    <xsd:attribute name="onlyEnd" type="xsd:boolean" default="false"/>
  </xsd:complexType>

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

The elements in windowVars should all be optional themselves (Bug #6310).

This means that an empty list of window variables can be written two ways:

<windowStartCondition>
   <winStartExpr>
      .
      .
      .
   </winStartExpr>
</windowStartCondition>

and

<windowStartCondition>
   <windowVars/>
   <winStartExpr>
      .
      .
      .
   </winStartExpr>
</windowStartCondition>


Perhaps the windowVars element should be required.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 15 December 2008 01:47:57 UTC