W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2001

Re: links to form results: handling & in attributes

From: Dan Connolly <connolly@w3.org>
Date: Fri, 23 Mar 2001 09:08:48 -0600
Message-ID: <3ABB6700.196DDC68@w3.org>
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&amp;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
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:23 UTC