Re: [Zope3-dev] Re: .xpt extension for explicit xml processing
On 1/12/06, Tonico Strasser [EMAIL PROTECTED] wrote: I found another situation where HTML mode helps the author to be backward (speak MSIE 6) compatible: In XML mode this snippet html xmlns=blah script/script /html ... . This would cause IE to display a blank page! The code that's been written so far handles this by generating script/script instead of script/. Some details of the XML mode clearly have to be adjusted to make browsers happy; that's a limitation of current browsers that we know we have to live with. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com There is no wealth but life. --John Ruskin ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] Re: .xpt extension for explicit xml processing
http://dev.zope.org/Zope3/BetterXMLSupportForPageTemplates One comment on the section Questioning HTML mode in this document: HTML mode is still useful for user agents that use a SGML parser instead of a XML parser and would break if they had to deal with real XML code. I know, such user agents are very rare, Netscape 4 comes into my mind. (If you want to make Netscape 4 burn just put a br/ somewhere in the source). Why does HTML mode help? It converts foo/ to foo /. This behaviour is described in appendix C of the XHTML specs. This appendix summarizes design guidelines for authors who wish their XHTML documents to render on existing HTML user agents. http://www.w3.org/TR/xhtml1/#guidelines MSIE is known to handle XHTML pretty well althought it doesn't use a XML parser. IE can deal with br/ but it can't deal with script/. You have to write script/script for IE. Here a quote from an artikle at Wikipedia: Rather, XHTML 1.0 was intentionally designed to be usable by HTML 4.0 user agents, like Internet Explorer, if certain document authoring guidelines for backward compatibility were followed. http://en.wikipedia.org/wiki/Criticisms_of_Internet_Explorer#XHTML From this information I come to the conclusion that it would be best to simply follow the compatibility guidlines in appendix C. HTML mode helps me to do this by inserting a space before the closing slash. Just my two cents. Tonico ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] Re: .xpt extension for explicit xml processing
Julien Anguenot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, We are working with Fred on the tal processing mixed modes issue I raised in a previous thread on this list. The development branch for this has been created over there : http://svn.zope.org/Zope3/branches/tal_mixed_mode/ We thought about adding an .xpt extension meaning explicit xml processing to avoid having a more complex input type sniffer and thus decrease the performances of page template... +1 We'd find this very useful in one of our projects going on at the moment. -Michel ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com