OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: att="sé1"

[ Lists Home | Date Index | Thread Index ]
  • From: Mike Champion <mcc@arbortext.com>
  • To: Patrice Bonhomme <Patrice.Bonhomme@loria.fr>, xml-dev@ic.ac.uk
  • Date: Mon, 1 Jun 1998 09:47:54 -0400

At 12:38 PM 5/30/98 -0400, Patrice Bonhomme wrote:
>
><hi/>
>
>An Attribute value, within the DOM interface, is a String. But i could have 
>this :
>	<S id="s&eacute;1">
>
>And i want to restore the original attribute value (s&eacute;1) when i
save my 
>file.
>
>Is it possible for the Attribute class to extend either the ContainerNode 
>class or the NodeList class ?

This is admittedly not at all clear in the April 15 draft of the spec, but
the children of an Attribute are the values (the String methods are
conveniences for the HTML world, in which attribute values can't contain
entity references). So, an attribute could have a single Text node as a
value (in the simple case), or a sub-tree of text nodes and whatever entity
references expand to.

This is being re-worked and clarified for the next draft.

Mike Champion


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS