Where can comments appear?

>2.5 Comments
>
>Comments may appear anywhere in a document outside other markup; 
>in addition, they may appear within the document type declaration at 
>places allowed by the grammar.

Comments can also appear within (1) external parsed entities and (2) 
external DTD subsets, and (3) external parameter entities.  Are these 
three cases covered by the above paragraph?   (They are indeed covered 
by the BNF.)

In my understanding of 2.1, external DTD subsets, external parsed entities, or
external parameter entities do NOT consist of XML documents, but rather they 
are merely referenced from XML documents.  But the second sentence in 
5.2 "it [a validating XML processor] must read everry piece of a document 
and report all well-formedness and validity violations" suggests 
otherwise.  What is a document?  ;-(

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

Received on Tuesday, 4 August 1998 04:07:37 UTC