W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

DOM 3 LS DOMError unbound-namespace-in-entity

From: Andrew Clover <and-w3@doxdesk.com>
Date: Mon, 21 Jul 2003 21:20:57 +0000
To: www-dom@w3.org
Message-ID: <20030721212057.GA27868@doxdesk.com>

DOMParser:

> "unbound-namespace-in-entity" [warning]
> Raised if the configuration parameter "entities" is set to true and
> an unbound namespace prefix is encounterd in an entity declaration. 

OK.

DOMSerializer:

> "unbound-namespace-in-entity" [warning] 
> Raised if the configuration parameter "entities" is set to true and
> an unbound namespace prefix is encounterd in a referenced entity. 

Does this mean...

 a. prefixes unbound in an entity declaration cause an error (as for
    DOMParser), or

 b. prefixes unbound in an entity declaration cause an error only if they
    are referenced somewhere in the document, or

 c. prefixes unbound in an entity reference cause an error?

IOW, if one were to parse -

  <!DOCTYPE x [
    <!ENTITY e1 "<NS1:x/>">
    <!ENTITY e2 "<NS2:x/>">
    <!ENTITY e3 "<NS3:x/>">
  ]>
  <x xmlns:NS1="NS1">
    &e1;
    &e2;
  </x>

and then re-serialise it, would one get 1, 2 or 3 unbound-namespace-in-entity
warnings?

PS. also, s/encounterd/encountered.

-- 
Andrew Clover
mailto:and@doxdesk.com
http://www.doxdesk.com/
Received on Monday, 21 July 2003 17:32:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT