You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/02/22 04:41:10 UTC

[c1] weird namespace bug

hey bugs. i've got a page in which i'm doing an xsp, an xinclude, then two
xslt transformations. yeah, sounds nasty but i've got very clear contracts
between the layers so it's actually not too bad. anyway, i just finished
moving all of the HTML stuff into the last transformation layer when i
started getting errors from cocoon for some pages - the one about error
outputting text before the root element. oddly, when i do the
transformations by hand, everything works fine.

i finally tracked the problem down. after the xsp (and xinclude)
transformations, the resulting xml file does _not_ declare all of the
namespaces that are used in it. after re-arranging the namespace
declarations on the page, everything worked fine. that's a huge problem.
xsp's namespace handling sucks.

- donald