Marcel, First of all, shouldn't you set in
handler.startElement(null, "exception", "exception", null); the namespace, so I18nTransformer.I18N_NAMESPACE_URI instead of null ??? Probably I am missing something? Furthermore, use log transformer http://cocoon.apache.org/2.1/userdocs/log-transformer.html for debugging. If you put it after your generator, you get a log of the sax events, so you see where it goes wrong AS > > Thanks Bertrand and Geert for answering! > > Bertand you are right. In the "view source" I can see the > namespace declaration. > > I'm feeling very stupid right now. s-: > > Tanks > > Marcel > > > -----Oorspronkelijk bericht----- > Van: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] > Verzonden: dinsdag 3 januari 2006 12:47 > Aan: [email protected] > Onderwerp: Re: Problem writing generator > > Le 3 janv. 06, à 10:40, Marcel Rouwenhorst a écrit : > > > ...This example creates the following xml: > > <exception> > > <i18n:text i18n:key="some_key"/> > > </exception>... > > How are you looking at this? I think your code is correct, so maybe > it's your view of the generated XML that is wrong? > > Using the "view source" function of a browser might not show you the > namespace declarations - saving the output with wget and > looking at the > saved file is more precise. > > -Bertrand > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
