This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
I have modified the XQueryX 3.0 stylesheet to generate surrounding parentheses for try-catch expressions, which can be seen in the XSLT Stylesheet in Appendix B of the editor's draft found at http://www.w3.org/XML/Group/qtspecs/specifications/xqueryx-30/html/Overview.html I have therefore marked this bug RESOLVED/FIXED. The transformation now generates this: ( (try { 1 } catch * { 2 })+3) If you agree that this was done correctly, please mark this bug CLOSED.