cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: external entities
Date Wed, 17 May 2000 21:29:59 GMT
Mike Engelhart wrote:
> 
> OK, this is probably an FAQ but I can't locate the answer anywhere and it's
> driving me nuts.  I've tried adding the entities in a DTD and nothing seems
> to work.
> 
> How do i prevent Cocoon (xalan/xerces) from changing during a transformation
> to HTML:
> 
> &auml;
>   to
> &amp;auml;
> 
> thanks,

I use the following code and had no problem since:

<?xml version="1.0"?>

<!DOCTYPE page [
 <!ENTITY % characters SYSTEM "characters.ent">
 %characters;
]>

<page>
  Sch&ouml;, gell!
</page>
         
I've found the characters.ent file in the cvs of stylebook in the
directory styles/apachexml/dtd.

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Mime
View raw message