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

Sidnei da Silva sidnei at enfoldsystems.com
Thu Sep 1 13:14:33 EDT 2005


On Thu, Sep 01, 2005 at 11:56:59AM -0400, Derrick Hudson wrote:
| The ZPT processor/renderer shouldn't dictate this as it is clear that
| ZPTs can be used to create a wide variety of types of content.
| 
| I think the content-type sent to the browser should be controlled by
| the <browser:page> directive.  The HTTP content-type is really part of
| the browser interaction and not necessarily part of the template
| processing.  <browser:page> could default to text/html or text/xml or
| whatever people decide is the most commonly desired type and include
| an attribute to override it.
| 
| Hypothetically speaking, because I don't have any relevant experience
| to support this, a different type of view may want to use the same ZPT
| with a different content-type.  Maybe the XML-RPC or WebDAV publishers
| have different constraints and want to send application/xhtml+xml for
| a given template while the browser publisher must degrade it to
| text/html for IE.

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.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20050901/84f3d0a2/attachment.bin


More information about the Zope3-dev mailing list