Re: A different comment syntax question

MURATA Makoto (murata@apsdc.ksp.fujixerox.co.jp)
Sat, 18 Jul 1998 01:06:44 +0900


Rob Cameron wrote:
>
> If, as I assume, the answer is that only the double hyphen case
> is a concern, then the grammar needs to be changed.
>
> Comment ::= '<!--' (Char* - (Char* '--' Char*)) '-->'
>

This is semantically identical to the current rule:

Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

I agree with you in that your proposal is clearer and more readable.
In fact, I did the same proposal prior the XML PR, but it was not
accepted. Probably, I should try again in the next version of the
XML specification.

Makoto

Fuji Xerox Information Systems

Tel: +81-44-812-7230 Fax: +81-44-812-7231
E-mail: murata@apsdc.ksp.fujixerox.co.jp