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

2005-09-02 Thread Chris Withers
Sidnei da Silva wrote: That smells to me like we need a mime-type negotiator or something, pretty much like we have a language negotiator for deciding which language to use for translations. No really, all this thread seems to have really uncovered so far is that macros in different ZPT

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

2005-09-02 Thread Tonico Strasser
Andreas Reuleaux schrieb: On Thu, Sep 01, 2005 at 06:58:42PM +0200, Tonico Strasser wrote: ... What's your point? Well, from reading your conversation with Philipp I got the impression, that you wanted to say something like XML-Mode in PTs respectively XHTML is useless if served with the

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

2005-09-01 Thread Tonico Strasser
Fred Drake schrieb: On 8/31/05, Philipp von Weitershausen [EMAIL PROTECTED] wrote: HTML4 mode exists because ... - it enforces some HTML document type (as mentioned before); no idea why it does that I'm just guessing you're referring to its understanding of the allowed nesting

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

2005-09-01 Thread Philipp von Weitershausen
Tonico Strasser wrote: Fred Drake schrieb: On 8/31/05, Philipp von Weitershausen [EMAIL PROTECTED] wrote: HTML4 mode exists because ... - it enforces some HTML document type (as mentioned before); no idea why it does that I'm just guessing you're referring to its understanding of the

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

2005-09-01 Thread Philipp von Weitershausen
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;

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

2005-09-01 Thread Philipp von Weitershausen
Tonico Strasser wrote: Philipp von Weitershausen schrieb: I'm not so sure that this is such a good thing. ZPT seems to enforce *guidelines* that not everyone might want to follow (e.g. if I want to output my XHTML as c14n or something similar). For me, ZPT's HTML mode just does too many

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

2005-09-01 Thread Tonico Strasser
Philipp von Weitershausen schrieb: If we make XML the default mode, I don't see how it would impact IE very much. IE would try to dowload HTML pages not served as text/html. Pages in XML mode should be served as XML not text/html. Tonico ___

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

2005-09-01 Thread Tonico Strasser
Philipp von Weitershausen schrieb: Tonico Strasser wrote: Philipp von Weitershausen schrieb: If we make XML the default mode, I don't see how it would impact IE very much. IE would try to dowload HTML pages not served as text/html. Pages in XML mode should be served as XML not text/html.

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

2005-09-01 Thread Tonico Strasser
Philipp von Weitershausen schrieb: Tonico Strasser wrote: Philipp von Weitershausen schrieb: I'm not so sure that this is such a good thing. ZPT seems to enforce *guidelines* that not everyone might want to follow (e.g. if I want to output my XHTML as c14n or something similar). For me,

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

2005-09-01 Thread Philipp von Weitershausen
Tonico Strasser wrote: Philipp von Weitershausen schrieb: Tonico Strasser wrote: Philipp von Weitershausen schrieb: Tonico Strasser wrote: Philipp von Weitershausen schrieb: I'm not so sure that this is such a good thing. ZPT seems to enforce *guidelines* that not everyone might

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

2005-09-01 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Tonico Strasser wrote: Philipp von Weitershausen schrieb: Tonico Strasser wrote: Philipp von Weitershausen schrieb: Tonico Strasser wrote: Philipp von Weitershausen schrieb: I'm not so sure that this

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

2005-09-01 Thread Philipp von Weitershausen
Julien Anguenot wrote: I think it's time to sketch out a proposal :). +1 Do you want to write it ? I can start, then you, Tonica and others can pad it out in the wiki. Philipp ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub:

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

2005-09-01 Thread Tonico Strasser
Philipp von Weitershausen schrieb: Ah, good. It wasn't at all clear that you actually supported the proposal :). Yes, if it's still possible to trigger HTML mode. But what about backwards compatibility if we make XML the default mode? Well, the namespace stuff would probably account for a

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

2005-09-01 Thread Derrick Hudson
On Thu, Sep 01, 2005 at 05:00:37PM +0200, Tonico Strasser wrote: | Philipp von Weitershausen schrieb: | Ah, good. It wasn't at all clear that you actually supported the | proposal :). | | Yes, if it's still possible to trigger HTML mode. But what about | backwards compatibility if we make XML the

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

2005-09-01 Thread Florent Guillaume
Philipp von Weitershausen wrote: Julien Anguenot wrote: I got a problem with the standard macros use and the XML header. I've a view defined like the one below : ?xml version=1.0 encoding=UTF-8? html xmlns:tal=http://xml.zope.org/namespaces/tal;

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

2005-09-01 Thread Tonico Strasser
Andreas Reuleaux schrieb: On Thu, Sep 01, 2005 at 11:44:48AM +0200, Tonico Strasser wrote: ... And, as long pages are served as text/html they are treated as old-style HTML by browsers anyway[1]. XHTML pages served as text/html must follow the compatibility guidelines[2]. E.g. in ZPT HTML

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

2005-08-31 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Julien Anguenot wrote: I got a problem with the standard macros use and the XML header. I've a view defined like the one below : ?xml version=1.0 encoding=UTF-8? html

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

2005-08-31 Thread Philipp von Weitershausen
Julien Anguenot wrote: Ok the problem is the doctype declaration on top of the macro files that force the tal interpretor to enter html mode and as far as I understand you can't have mix moded macros. Exactly. I forgot to mention that in my follow-up... Btw, doctype declaration is something

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

2005-08-31 Thread Derrick Hudson
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; |

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

2005-08-31 Thread Derrick Hudson
On Wed, Aug 31, 2005 at 02:48:11PM +0200, Philipp von Weitershausen wrote: [...] | PageTemplates know two different modes, HTML4 mode and XML mode: [...] | So, instead of proposing to radically get rid of HTML4 mode, I propose this: | | - XML mode of ZPT becomes the standard mode. | | - We

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

2005-08-31 Thread Stephan Richter
On Wednesday 31 August 2005 10:05, Julien Anguenot wrote: 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

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

2005-08-31 Thread Gary Poster
On Aug 31, 2005, at 10:46 AM, Stephan Richter wrote: On Wednesday 31 August 2005 10:05, Julien Anguenot wrote: 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 ?

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

2005-08-31 Thread Derrick Hudson
On Wed, Aug 31, 2005 at 10:46:34AM -0400, Stephan Richter wrote: | On Wednesday 31 August 2005 10:05, Julien Anguenot wrote: | 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