[Zope-dev] FS PageTemplates and XML generation issues

Florent Guillaume fg at nuxeo.com
Wed Dec 22 10:35:13 EST 2004


Alan Milligan wrote:
> | ZPT will process tal instructions in XML templates only if the proper
> | namespace is declared. You must have:
> |
> |   xmlns:tal="http://xml.zope.org/namespaces/tal"
> |
> Ok, I've explicitly included this now as well, and it behaves properly :)
> 
> What is the rationale for this behaviour??  Is there any situation
> whereby I would NOT expect this namespace to be present implicitly??  If
> this were so, there'd be no dynamic content in my XML and I'd simply
> choose to store it on the ZODB as a File ...

You could possibly have pre-exising XML with another tal namespace used 
for something else. Declaring all namespaces in XML is pretty much the 
standard way of doing things anyway.

> | Use:
> |
> | [default]
> | content_type = text/foobar
> 
> No, this doesn't work either :(

Well it should, there are unit tests in CMFCore that explicitely test 
this kind of .metadata file.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope-Dev mailing list