[ZCM] [ZC] 2297/ 1 Request "Five.browser.pagetemplatefile should special-case XML"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Fri, 23 Mar 2007 09:14:46 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2297 Update (Request) "Five.browser.pagetemplatefile should special-case XML"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2297

==============================================================
= Request - Entry #1 by mj on Mar 23, 2007 9:14 am

When creating a pagetemplate from a file, in Zope2, CMFCore and Zope3 the loading code detects XML templates by looking for a XML prolog ("<?xml..."), after which the content type is set to text/xml. This is important because PageTemplate rendering differs between XML and HTML content types.

Five's implementation doesn't do this, causing XML templates to be treated as HTML, including serving them as text/html and lowercasing all element names. As a result one cannot create a XML view in Zope 2 using Z3 views. 
==============================================================