Thanks Chris,

For future readers, Pylons uses a render_response() function to pass
the template name to the engine. If you use
render_response('mytemplatename',format='xhtml'), this should make
sure Kid outputs the correct format (looks like all the Kid standards
such as xml, html-strict, xhtml-strict, etc are also supported).

Make sure you download all the latest modules since the format
parameter did not work for me initially.

Cheers again,
Ben
On 5/14/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> Ben Kirman wrote:
> > My template.kid declares this tag as:
> > <html xmlns:v="urn:schemas-microsoft-com:vml"
> > xmlns="http://www.w3.org/1999/xhtml";
> > xmlns:py="http://purl.org/kid/ns#";
> >     py:extends="'master.kid'">
> >
> > yet Kid outputs simply <html> to the browser.
> > I tried the same in my master template but it is still the same.
> >
> > How can I make Kid retain this xmlns declaration in the output?
>
> You need to render xhtml istead of html if you want to do stuff like
> this, since html does not support namespaces.
>
> Kid is able to render output in various ways, see:
> http://www.kid-templating.org/guide.html#common-output-methods
>
> In TurboGears, you can change the output method by setting
> kid.outputformat="xhtml"
>
> Not sure how you would do this with Pylons, though.
>
> -- Chris
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kid-template-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to