[kupu-dev] Kupu XHTML and libxml2

Laurence Rowe l at lrowe.co.uk
Thu Jan 15 02:39:44 CET 2009


2009/1/1 Morten W. Petersen <morten at nidelven-it.no>:
> it barfs on the kupu configuration section:
>
> #  <div style="display: none;">
> # <xml id="kupuconfig" class="kupuconfig">
> # <kupuconfig>
> #
> # <dst>fulldoc.html</dst>
> # <use_css>0</use_css>
> # <reload_after_save>0</reload_after_save>
> # ...
>
> Any ideas on how that can be fixed?

I've just run into the same problem with the push parser interface of
libxml2's HTMLParser (it seems the htmlCtxtRead* functions are more
forgiving). As this is running in a proxy (to apply the new plone.org
theme), I'm reluctant to read the whole file to memory before parsing.

Can anyone think of a quick and dirty workaround? Maybe wrapping the
output into a javascript document.write?

Laurence


More information about the kupu-dev mailing list