- From: Dan Connolly <connolly@w3.org>
- Date: Fri, 23 Mar 2001 09:08:48 -0600
- To: Irene VATTON <Irene.Vatton@inrialpes.fr>
- CC: www-amaya@w3.org
Irene VATTON wrote: > > Hi Dan, > > We're looking at the problem. > We patched Expat because it omitted to transmit entities when they > are located within attribute values. > It seems the bug fix doesn't work in your case. When you say that expat didn't transmit entities... do you mean that it gives you the replacement text of the entity rather than the entity reference? That's not a bug; that's as designed. When parsing this document <aDoc attr="abc&def"/> I would expect an XML parser to just give me "abc&def" as the attribute's value. If you're trying to preserve markup like "abc def" then you're going to need something other than a generic XML parser. I don't recommend that you try to do that at all. Just deal with attribute values as plain strings. -- Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Friday, 23 March 2001 10:08:54 UTC