Hello,

i used serialize(output='xhtml') to generate my xhtml output but it replaces my <img ../> with <img ...> </img> - why ?!

I worked around this by using:
doc = ('html', '-//W3C//DTD XHTML 1.0 Transitional//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd')
serOut = kid.XMLSerializer(encoding='utf8', decl=1, doctype=doc)

as serializer. (and that works for me!)

And I have a problem with &nbsp; for that i found only a realy ugly solution. While i want <img /> i have to use <div></div> instead of <div /> becaouse for browsers its just not the same! I tried <div>&nbsp;</div> to get the results i wanted... but it always ends with a <div /> ...

I 'solevd' this by adding a white point to the div.

Something that shouldnt happen is if you using:
<div class="topLogo" py:content="&nbsp;" />

You get this python error:

File "/var/www/kizzes/svn/trunk/tpl/design.py", line 86
  _cont =             ^

Florian Ludwig




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
kid-template-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to