[Bug 17549] New: [XQueryX30] missing parens for try/catch expression

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17549

           Summary: [XQueryX30] missing parens for try/catch expression
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX 3.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org


I start with:

(try {1} catch * {2}) + 3


I use our applets to generate XQueryX:

    <xqx:queryBody>
      <xqx:addOp>
        <xqx:firstOperand>
          <xqx:tryCatchExpr>
            <xqx:tryClause>
              <xqx:integerConstantExpr>
                <xqx:value>1</xqx:value>
              </xqx:integerConstantExpr>
            </xqx:tryClause>
            <xqx:catchClause>
              <xqx:catchErrorList>
                <xqx:Wildcard/>
              </xqx:catchErrorList>
              <xqx:catchExpr>
                <xqx:integerConstantExpr>
                  <xqx:value>2</xqx:value>
                </xqx:integerConstantExpr>
              </xqx:catchExpr>
            </xqx:catchClause>
          </xqx:tryCatchExpr>
        </xqx:firstOperand>
        <xqx:secondOperand>
          <xqx:integerConstantExpr>
            <xqx:value>3</xqx:value>
          </xqx:integerConstantExpr>
        </xqx:secondOperand>
      </xqx:addOp>
    </xqx:queryBody>


I use our XQueryX stylesheet to generate:

(
try { 1 }
  catch * 
{ 2 }+3)


This query does not have parens surrounding the try/catch expression, and so
does not parse. I believe that our XQueryX stylesheet should be generating
these parens.

-- 
Configure bugmail: https://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 Tuesday, 19 June 2012 21:13:45 UTC