DOM 3 LS DOMError unbound-namespace-in-entity

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 UTC