- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 15 Jun 2006 18:51:11 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3333 jim.melton@acm.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #1 from jim.melton@acm.org 2006-06-15 18:51 ------- Many thanks for your report. After spending some time thinking about the specific situation that you reported and researching the intended relationships between the XQueryX grammar and the XQuery grammar, it is not completely obvious that your report actually identifies a bug. Consider the XQuery syntax that the XQueryX stylesheet generates from your XQueryX document: (7 + let $c:=5 return $c). As you state, that query is syntactically incorrect. A syntactically-valid variation is: (7 + (let $c:=5 return $c)), with parentheses surrounding the FLWOR expression "let $c:=5 return $c". That suggests that the proper way to express the query in XQueryX is to embed the XQueryX representation of the FLWOR expression in an <xqx:parenthesizedExpr> element. Naturally, the XQueryX stylesheet would generate the surrounding parentheses, resulting in correct XQuery syntax. However, an argument can be made that the XQueryX stylesheet could, without breaking the transformation of any other queries, simply generate parentheses surrounding FLWOR expressions in all situations, as it does for expressions such as sums, differences, products, comparisons, and so forth. Before I propose a change to the XML Query Working Group that the stylesheet be modified in this way, I would like a bit more feedback and review.
Received on Thursday, 15 June 2006 18:51:14 UTC