cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <mengelh...@earthtrip.com>
Subject Re: external entities
Date Wed, 17 May 2000 21:26:37 GMT
on 5/17/00 3:44 PM, Paul Russell at paul@luminas.co.uk wrote:

> Do you want the bad news, or the bad news?
> 
> You need to declare them as entities in your XML DTD, eg:
> 
> <?xml version="1.0" standalone="yes"?>
> <!DOCTYPE rootelement [
> <!ENTITY auml "&#228;">
> ]>
> 
> Then when you do &auml; in your document...
> 
> <rootelement>
> &auml;
> </rootelement>
> 
> ... it'll get parsed and end up as a unicode character for
> the rest of its journey through cocoon. *Hopefully*, at the
> other end, the serializer will convert it into an HTML entity.
> I'm pretty sure Cocoon1.x does this already, and I've just
> posted a patch to make Cocoon2 do it.

Cool -thanks.  the one thing that perplexes me is that if I use the entity
codes directly they get mangled.

for example:
&#228;
turns into
&amp;#228;

in my HTML output.  Is that the normal behavior??

Thanks,

Mike


Mime
View raw message