Hi, finally my small template-test works! I've added a DOCTYPE to the template: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"> <head><title>test</title></head> <body><br /></body> </html>
...and voilĂ : >>> from kid import * >>> template = Template(file='test.kid', url=None) >>> print template.serialize(output='xhtml') <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>test</title></head> <body><br /></body> </html> I've tried setting a doctype and xmlns=... in the kid-file of my turbogears-project but there I still got those nasty <br></br>-tags :-\. (kid.outputformat is set to xhtml, so I can't understand why kid/turbogears creates those crazy tags... I hope anyone here can) p.s.: I've updated my turbogears to 0.9a9 (via debian apt). Andreas Bresser --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

