W3C home > Mailing lists > Public > xml-editor@w3.org > April to June 1998

why (Q re well-formedness constraints)

From: Richard L. Goerwitz III <richard@goon.stg.brown.edu>
Date: Fri, 1 May 1998 15:00:14 -0400 (EDT)
Message-Id: <199805011900.PAA18557@goon.stg.brown.edu>
To: xml-editor@w3.org
Why is the following condition added to paragraph 3.1 of the XML


Well-Formedness Constraint: No External Entity References 
  Attribute values cannot contain direct or indirect entity references
  to external entities.


This is extremely interesting.  How is a processor going to know if an
entity refers to something external unless it reads the (external)
DTD?  If it has to read the DTD, how can this be a well-formedness
constraint?  I mean, isn't it a validity constraint?

If it's a validity constraint, then it makes no sense to me (entities
can resolve perfectly well both inside and outside of attribute vals).

(I'm sorry if this is a dumb question.)

Richard Goerwitz
Received on Friday, 1 May 1998 15:00:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:12:34 UTC