Hi Martin,
> you should do [...]
> item.tag = '{http://www.w3c.org/1999/xhtml}head'
> instead.
Thanks. That worked... I can set the xmlns=... now. (but with two equal
signs, not with only one!)
But i still got strange html-code.
I've now created just one small kid-file to test it:
<html xmlns:py="http://purl.org/kid/ns#"
xmlns="http://www.w3c.org/1999/xhtml">
<head><title>test</title></head>
<body><br /></body>
</html>
and kid creates again this nasty <br></br>-code in my source. How is
that possible?
And why do I see the correct <br /> in the other file when I specify
xmlns but use the "wrong" py:match?
I've tested this small template in python directly and it worked as
suspected:
>>> from kid import *
>>> template = Template(file='losteden/templates/buildings.kid', url=None)
>>> print template.serialize()
[...] <br /> [...]
but when I execute
>>>print template.serialize(output='xhtml')
i get the following 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.w3c.org/1999/xhtml">
<head>
<title>test</title>
</head>
<body>
<br></br>
</body>
</html>
Any further tips or ideas?
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
-~----------~----~----~----~------~----~------~--~---