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>

But 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='test.kid', url=None)
>>> print template.serialize()
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3c.org/1999/xhtml";>[...]
<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";> [...]
                <br></br>[...]

Ah... The default output of kid is xml.

When I change kid.outputformat in my app.cfg to xml I get the <br
/>-tags, and the html-code looked quite nice (well, the validator cries
that there is no DOCTYPE) but the browser does not include the
JS/CSS-files.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to