> > The rendered html page should contain namespace information, for instance > > > > <tr> > > <th mochi:format="str">Domain Name</th> > > <th mochi:format="isodate">Creation Date</th> > > <th mochi:format="isodate">Expiry Date</th> > > <th mochi:format="istr">Organization Name</th> > > </tr> > > > > and I can't get this out from kid. If I simply put the above lines > > into a template kid complains about an unbound prefix. Do I have to > > declare somehow this new namespace or what's the proper way? > > Yes, you must declare it (xmlns:mochi="http://www.mochikit.com") in one > of the enclosing tags, since Kid reads only valid XML files. Also, > you'll probably need to render your page as XHTML, since Kid does not > output namespaces in HTML because HTML actually has no namespaces.
I've tried that already, I mean adding xmlns:mochi="http://www.mochikit.com" to the <html> element of the template but then although kid doesn't complain and compiles the template the actual output will have <p ns1:hello="x"> </p> in it if I have <p mochi:hello="x"> </p> in the template. Strangely, although you are of course right that html doesn't have namespaces kid doesn't complain and happily renders the html doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> for the document. I have no idea what's going on, any help would be very useful! Cheers, Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

