A different comment syntax question

MURATA Makoto murata at apsdc.ksp.fujixerox.co.jp
Fri Jul 17 18:06:09 BST 1998


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 at apsdc.ksp.fujixerox.co.jp

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list