[Bug 14357] New: [APPLET] varName generated for assignment in grouping spec

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

           Summary: [APPLET] varName generated for assignment in grouping
                    spec
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Grammar Test Applets
        AssignedTo: jmdyck@ibiblio.org
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org
             Group: XSLXQuery_WG


When I generate XQueryX for this example:

for $a in $b
group by $c := $a
return $name

I see:

          <xqx:groupingSpec>
            <xqx:varName>c</xqx:varName>
            <xqx:varName>a</xqx:varName>
          </xqx:groupingSpec>

I suggest that it would be better to generate a varRef element for $a, rather
than a varName element. I see the varRef that I expect when I generate XQueryX
for:

for $a in $b
group by $c := $a + 3
return $name

I see:

          <xqx:groupingSpec>
            <xqx:varName>c</xqx:varName>
            <xqx:addOp>
              <xqx:firstOperand>
                <xqx:varRef>
                  <xqx:name>a</xqx:name>
                </xqx:varRef>
              </xqx:firstOperand>
              <xqx:secondOperand>
                <xqx:integerConstantExpr>
                  <xqx:value>3</xqx:value>
                </xqx:integerConstantExpr>
              </xqx:secondOperand>
            </xqx:addOp>
          </xqx:groupingSpec>

-- 
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 Sunday, 2 October 2011 21:12:15 UTC