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

Entity references in Attr values

From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Date: Mon, 17 Dec 2001 12:51:33 -0500
Message-ID: <3C1E30A5.6010407@metalab.unc.edu>
To: www-dom@w3.org
An attribute in an XML document may contain general entity references to 
entities defined in the DTD; e.g.:

<myElement att="Here's some text &link; with an entity ref">
  data
</myElement>

What should a DOM implementation do when faced with something like this 
when the replacement text for the geenral entity is not available 
because it's defined in the external DTD subset which the parser did not 
read? In particular what should getValue() return for the corresponding 
Attr node?

I find nothing in the spec that addresses this possibility.

-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://www.ibiblio.org/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+
Received on Monday, 17 December 2001 12:51:02 GMT

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