- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 14 Jun 2006 20:39:02 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3333 Summary: stylesheet needs to generate more parenthesis Product: XPath / XQuery / XSLT Version: Candidate Recommendation Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: XQueryX AssignedTo: jim.melton@acm.org ReportedBy: andrew.eisenberg@us.ibm.com QAContact: public-qt-comments@w3.org It would seem that the XQueryX stylesheet needs to generate more parenthesis than it does currently. Consider the following example: <?xml version="1.0"?> <xqx:module xmlns:xqx="http://www.w3.org/2005/XQueryX" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2005/XQueryX http://www.w3.org/2005/XQueryX/xqueryx.xsd"> <xqx:mainModule> <xqx:queryBody> <xqx:addOp> <xqx:firstOperand> <xqx:integerConstantExpr> <xqx:value>7</xqx:value> </xqx:integerConstantExpr> </xqx:firstOperand> <xqx:secondOperand> <xqx:flworExpr> <xqx:letClause> <xqx:letClauseItem> <xqx:typedVariableBinding> <xqx:varName>c</xqx:varName> </xqx:typedVariableBinding> <xqx:letExpr> <xqx:integerConstantExpr> <xqx:value>5</xqx:value> </xqx:integerConstantExpr> </xqx:letExpr> </xqx:letClauseItem> </xqx:letClause> <xqx:returnClause> <xqx:varRef> <xqx:name>c</xqx:name> </xqx:varRef> </xqx:returnClause> </xqx:flworExpr> </xqx:secondOperand> </xqx:addOp> </xqx:queryBody> </xqx:mainModule> </xqx:module> This generates the following XQuery, which does not parse: (7+ let $c:=5 return $c ) Parenthesizing the FLWOR expression would correct this.
Received on Wednesday, 14 June 2006 20:39:09 UTC