thanks alessandro, i tried the second to no avail: doctype row was added.
as for the first, genshi didn't seem to work. here's my template: <?xml version="1.0" encoding="utf-8"?> <x. xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:py="http://genshi.edgewall.org/" py:strip="True"> <xi:include href="func_compare.html" /> <div py:replace="compare_data(items, params)" /> </x> my changes to render that worked turned to be randomal (as a result of editing error), so i can't count on them too. but i found a solution that did work for me: return tg.render.render(self.data(customer, items_to_compare),.'genshi', 'example.templates.compare-core') however, i left the mainstream code in order to try any of your advices thanks, alex On 02/07/2012 05:54 PM, Alessandro Molina wrote: > setting response.content_type to text/xml should make the Genshi > renderer use the proper doctype. > Using @expose('temaplate', content_type='text/xml') should also work. > > On Tue, Feb 7, 2012 at 11:51 AM, alex bodnaru <[email protected]> > wrote: >> >> hello friends, >> >> the tg/render.py render function is well designed to receive and pass the >> kwargs >> argument, to the renderer. >> but unfortunately, the kwargs parameter is being lost in the calling process >> in >> tg/controllers/decoratedcontroller.py. >> >> i specifically miss this option, since i wish to use a genshi template for >> xml >> output (without auto-generated DOCTYPE). a doctype kwarg would solve my >> problem, >> though i had to patch RenderGenshi to extract doctype from template_vars, >> which >> is being passed from the controller. >> >> could you any solution? >> >> thanks in advance, >> alex >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TurboGears" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/turbogears?hl=en. >> > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

