W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

Re: ENTITY datatype

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 14 Feb 2002 10:45:17 +0000
To: Stanley Guan <Stanley.Guan@oracle.com>
Cc: Schema XML <xmlschema-dev@w3.org>
Message-ID: <f5b3d04nxz6.fsf@cogsci.ed.ac.uk>
Stanley Guan <Stanley.Guan@oracle.com> writes:

Sorry to leave this so long.

> In the spec., it says:
>    The value space of ENTITY is the set of all strings that match the
> NCName
>    production in [Namespaces in XML] and have been declared as an
> unparsed
>    entity in a document type definition.
> 
> My questions are:
>    1. Does this mean XML Schema cannot live without DTD for some cases?

Yes -- if you use ENTITY, you must have a doctype.

>        What're the other occasions that DTD may need to coexist with
>        Schema?

I don't think so.

>    2. Where can the DTD that contains the declared unparsed entities
>    reside?  In the Schema itself (note that Schema is an XML
>    document itself)?

No.

> In instance document?

Yes.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Thursday, 14 February 2002 05:45:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT