W3C home > Mailing lists > Public > xml-editor@w3.org > July to September 1998

Where can comments appear?

From: MURATA Makoto <murata@apsdc.ksp.fujixerox.co.jp>
Date: Tue, 04 Aug 1998 17:11:25 +0900
Message-Id: <199808040811.AA01889@murata.apsdc.ksp.fujixerox.co.jp>
To: xml-editor@w3.org
Cc: murata@apsdc.ksp.fujixerox.co.jp
>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?  ;-(

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:39 UTC