[Zope] Re: [ZPT] Is PageTemplates doing xhtml conversion? Should it?
Geir Bækholt
Geir Bækholt
Wed, 29 Aug 2001 23:33:34 +0200
Hello John,
I have some related issues, which i am kind of puzzled by, as the
original spec of ZPT was to go fro XHTML altogether IIRC:
Is is not currently possible to create what are single attributes in
"old-style-html" (selected, checked etc..) as correct XHTML
(selected="selected") with tal:attributes..
if it also breaks onchange and its likes , i think we need to find a
way to coerce it into using the XML-parser for XHTML, but still serve
the pages with content-type text/html, to keep it working in most
browsers.
We have almost completely ditched DTML in favor of Page Templates, but
as long as it is not possible to create proper XHTML with them , i
consider them partially broken.
hmm.. i actually think XHTML should be the default these days, with a
"pre-html4.01-mode" for those going old-style....
:-)
Wednesday, August 29, 2001, 15:28:47, you wrote:
JM> I've been playing around with HTML tidy[1], using it to test some page
JM> templates that are part of a skin for a CMF product I've written. The -asxml
JM> flag is very useful for finding non-xhtml compliance problems in the
JM> templates, and various other goodies (you're not suppose to use a span inside
JM> a select, for example so you have to use optgroup, but they mess up the
JM> rendering in konqueror from kde 2.1...).
....
....
..
JM> [1] http://www.w3.org/People/Raggett/tidy/
JM> John
--
Geir Bækholt web-developer/zopatista
geirh@funcom.com funcom oslo | webdev-team
<!-- PGPid : 0x90B47B20 -->