W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: Entity references in Attr values

From: David Brownell <david-b@pacbell.net>
Date: Mon, 17 Dec 2001 20:07:14 -0800
To: Elliotte Rusty Harold <elharo@metalab.unc.edu>, www-dom@w3.org
Message-id: <008601c18779$7a6645c0$6800000a@brownell.org>
> What should a DOM implementation do when faced with something like this 
> when the replacement text for the geenral entity is not available  ... ?

The Infoset would say that unexpanded (for any reason) entity refs
ought to have a distinct representation.   Some might be OK (not
expanded because defined in a PE that was not read), some would
be fatal errors (all PEs were read, it still wasn't defined) if the XML
REC were more sensible about handling undeclared entities.  (It
defines a boatload of exception cases with ambiguous English.)


> In particular what should getValue() return for the corresponding 
> Attr node?

Considering that it's an error situation of some kind, and that both
the DOM (L2 anyway) and Infoset punted on how such errors are
to be reported, and the XML REC still has issues in specification
of entity handling ... why not try returning a random haiku? :)

- Dave
Received on Monday, 17 December 2001 23:09:15 GMT

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