I'm using Turbogears with Genshi for a web app. and I'm trying to figure out whether I can output html or xhtml consistently for the whole app. I started out with the default Turbogears encoding (html) and it worked fine until I find out that Genshi strips off namespaced attributes when encoding to html [1]. Then I switched to xhtml; this solved the particular problem but created a new one: one TG widget I had written that had an embedded JSSource stopped working because it included a smaller-than character, which was converted (by Kid I guess, since that's what TG widgets have to use for now AFAIK) to <. I read the suggestions about enclosing the <script> content in <! [CDATA[ ]]> but that didn't work either; it must be related to the ticket discussed in [2].
As a very quick and dirty workaround, I set the @expose decorator for the sole page that uses this widget to use format='html'. But that's really an ugly hack and would not even work if that page included namespaced attributes. Is there a way out of this mess ? I don't really care if it's going to be html or xhtml as long as it is the same for all pages and renders properly in modern browsers (or at the very least IE and Firefox). George [1] http://groups.google.com/group/genshi/browse_frm/thread/7d8d42b562a49752 [2] http://www.kid-templating.org/trac/ticket/99 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

