[Bug 2405] QueryBody for MainModule can be very difficult to parse

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





------- Additional Comments From jmdyck@ibiblio.org  2005-10-23 07:37 -------
(In reply to comment #2)
> I think one of the problem with
>   MainModule ::= Prolog QueryBody
> is on forward compatibility.
> 
> If current parsers treat whatever prolog that they cannot recognize as
> QueryBody, then it will be difficult to add new prologs without breaking
> existing parsers.

If a future version of XQuery introduces new kinds of PrologDecl, then that will
(rather inescapably) "break" existing parsers. Tweaking the grammar to make the
start of the QueryBody easier to recognize isn't going to change that.

Received on Sunday, 23 October 2005 07:37:48 UTC