cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <cromo...@gmx.net>
Subject Re: Replacing &amp; by &???
Date Sat, 19 Jun 2004 11:27:39 GMT
Joerg Heinicke wrote:

> On 19.06.2004 11:23, Stephan Coboos wrote:
>
>> Hello,
>>
>> what can I do to replace &amp; by & on end of the pipeline because I 
>> need the & to build a uri with parameters but what I get ist &amp;
>>
>> I'm using the HTMLSerializer for output (and need this one).
>
>
> Even in HTML & should be replaced with &amp; instead of the other way 
> around. Only loose browsers allowed the lazy developers to use &. So 
> just for building uris there is no need for replacing &amp; with &. & 
> is preserved for character and entity references.
>
> http://www.w3.org/TR/html4/charset.html#h-5.3.2:
>
> "Authors should use "&amp;" (ASCII decimal 38) instead of "&" to avoid 
> confusion with the beginning of a character reference (entity 
> reference open delimiter). Authors should also use "&amp;" in 
> attribute values since character references are allowed within CDATA 
> attribute values."
>
> http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.2
> http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.2.2
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Ahh, I see. That's good! Thank you.

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message