[Zope3-dev] Re: XML header and TAL interpretor

Julien Anguenot ja at nuxeo.com
Wed Aug 31 10:05:55 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derrick Hudson wrote:
> On Wed, Aug 31, 2005 at 03:54:45PM +0200, Philipp von Weitershausen wrote:
> | Julien Anguenot wrote:
> [...]
> 
> | > If you change the header like this then it can be succesfully included :
> | > 
> | > <?xml version="1.0" encoding="UTF-8"?>
> | > <html xmlns="http://www.w3.org/1999/xhtml"
> | >       xmlns:tal="http://xml.zope.org/namespaces/tal"
> | >       xmlns:metal="http://xml.zope.org/namespaces/metal"
> | >       xmlns:i18n="http://xml.zope.org/namespaces/i18n"
> | >       i18n:domain="zope">
> | > <body>
> | > 
> | > What kind of issue could we have changing the headers like this on all
> | > the standard macros since it's xhtml already ?
> | 
> | I'm not sure if this is a good idea. Because once Zope3's macros are XML
> | mode, all other templates using those macros need to be XML mode. That,
> | in turn, means that all templates need to carry the <?xml ...?>
> | processing instruction because that's the only way XML mode is currently
> | triggered. Since that processing instruction is optional (as opposed to
> | namespace declarations which are mandatory), I wouldn't want to force it
> | on template authors.
> 
> Don't forget that IE will then have an insane tendency to render the
> pages wrong.  I don't recall all of the details, but it was something
> like if the document began with <?xml ?> IE would switch to "quirks
> mode" and do funny things with boxes, margins, and the overall layout.
> The details are in this list's archives (if they aren't it's in the
> zope at zope.org list archives).
> 
> (not that I'm a fan of IE, but I do recall that being a problem for
> some people)

Having IE full of bugs is not a reason to not support standards such as
the xml processing instruction (which makes a document *not* XML valid
if it's not present on top of the document)

We'll think about buggy browsers in a second step ;)

	J.

- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDFblDGhoG8MxZ/pIRAsTpAJ9bmugNqSxWRGOYtt8z16gkUl8hxQCeLVbk
trnaCOwAusl2l7RS12qTMdw=
=1uMF
-----END PGP SIGNATURE-----


More information about the Zope3-dev mailing list