oh there is a mistake:
use '<!DOCTYPE div PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"/tmp/xhtml1-strict.dtd">'
and put xhtml1-strict.dtd, xhtml-lat1.ent, xhtml-symbol.ent,
xhtml-special.ent
und /tmp



Am 28.05.2010 07:55, schrieb Thomas Markus:
> and its also a good idea to prepend valid xml / xhtml signature:
>     mytext =
>         '<?xml version="1.0" encoding="UTF-8"?>'+
>         '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>' +
>         '<div>'+mytext+'</div>';
>
> cocoon.sendPage('my.jx',{ mytext : new 
> Packages.org.apache.cocoon.xml.StringXMLizable( mytext ) });
>
> if your server has no internet access for dtd resolving setup a simple
> EntityResolver
>
> hth
> Thomas


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

Reply via email to