[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 henryluo@vibrasoft.net  2005-10-21 15:55 -------
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.

May be a less drastical way is to 
have extra ";" to surround the prologs, as
   MainModule ::= ";" Prolog ";" QueryBody  |  QueryBody  
so that the parser depend on the extra ";" rather than the first two tokens to
separate Prolog from QueryBody.

Received on Friday, 21 October 2005 15:55:22 UTC