cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Collins" <>
Subject Re: Cocoon forms - XML binding serialisation loses namespace
Date Wed, 14 Apr 2004 22:34:00 GMT
Hi Marc,

Thanks for your help.

I started a new thread on this earlier under the title "DOMStreamer
namespace problems", as I managed to track the problem down further and
find a workaround. Sorry for any confusion if you missed it .. I should
have kept the same title :(

Basically on my setup, before I serialise the document I need to stick in
a call to turn off the namespace normalisation on the DOMStreamer so that
it doesnt use the NamespaceNormalizingDOMStreamer inner class but instead
uses DefaultDOMStreamer. If I do that then everything works dandy and I
get my namespace declaration. So it appears it is something to do with
the serialization which is odd.

The weird thing was that put a lot of debug printouts into
NamespaceNormalizingDOMStreamer and it seemed to be spitting out all the
right SAX events.

I'll try running it under Jetty and see if it makes a difference. That
would give me pretty much the same setup as you apart from the OS (I'm on
NT4). I have a funny feeling it's going to be one of those nasty XML
library issues so I'll check what I've got hanging around in my Tomcat
endorsed directory as well.

I'll also stick the log transformer in the way and see what light that

My test procedure was just going to the GUI form example via the menus,
submitting the form without making any modifications and then looking at
the result XML file and comparing it to the input file.



On Wed, 14 Apr 2004 17:55:24 +0200, "Marc Portier" <>
> I find that hard to imagine, but I'ld have to agree that suspecting the 
> serialization is even weirder :-)
> > rather than when serialising the DOM doc to file but I could be wrong.
> > 
> > Has anyone else had this problem? I'm running the nightly build of 2.1
> > from 6/4/04 on JDK1.4.2_04b05 under Tomcat 4.1.27
> > 
> Simon,
> I just tested the gui sample and result but cannot see what you are 
> refering to (I'm on the shipped jetty/w2k/jdk1.4.2_04)
> maybe there is a special case under which things occur, could you 
> double-check, and describe your testprocedure?
> I tried to create the same structure you pasted in the mail
> In the result there are a lot of dangling new-lines in the file (I 
> suspect them to come from old text-nodes), but the comment as well as 
> the root node and it's namespace declarations fd and i18n were preserved 
> correctly.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message