Re: links to form results: handling & in attributes

> 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.

It does it in the case of &amp;, but it skips the entity &euro;
The added patch is there just to let Amaya interprets other
entities (it's also the case of MathML entities) within attribute
values.
The release 4.3.2 fixes your problem and accepts valid entities now.

> 
> If you're trying to preserve markup like
> 	"abc&nbsp;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/

-- 
     Irene.

Received on Friday, 23 March 2001 11:50:20 UTC