[Bug 1412] [XQuery] Grammar: Allowing comments between $ and QName

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





------- Additional Comments From cmsmcq@w3.org  2005-07-20 17:07 -------
The only plausible way to make this change would be to make
VariableReference a token type.  (The only alternative I can
think of is an ad hoc rule, which lacks motivation.)

That would involve changes to productions 5 and 6, which is
not too onerous.  But it would also mean having a token type
with significant internal structure, and the rules for 
QNames (both syntactic and semantic) would have to be
either repeated between the token grammar and the main grammar
or else those rules have to be shared between the grammars,
which seems like a violation of modularity.

I think the general principle that tokens should be treatable
as atoms suffices to lead us to reject this proposal.

Received on Wednesday, 20 July 2005 17:07:20 UTC