W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Fri, 21 Oct 2005 15:13:36 +0000
To: public-qt-comments@w3.org
Message-Id: <E1ESyaO-0000CE-Mo@wiggum.w3.org>


------- Additional Comments From mike@saxonica.com  2005-10-21 15:13 -------
You can tell when you've reached the end of the prolog if the next two tokens
aren't one of the pairs that can start a prolog declaration, for example
"declare default" or "import schema" or "declare function".

I'm afraid it's not good timing for a comment like this. If it had come during
the last call period, the WG would have happily given it a hearing. Given that
there are at least a dozen implementors who have solved this problem, it's
unlikely that you're now going to convince the WG to change the language. In any
case, the language should be designed for the convenience of users, not of

The solution you propose would lose the nice property that every valid XPath
expression is also a valid query. It would also add a lot of red-tape for people
wanting to write simple one-line queries, perhaps embedded in a Java program or
written interactively in a dialog box. And there are plenty of other cases where
parsing needs to be a little bit context-sensitive (as your "gibberish" example

Michael Kay (personal response)
Received on Friday, 21 October 2005 15:14:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:09 UTC