[ZPT] Generating XML documents in ZPT
Evan Simpson
evan at 4-am.com
Mon Aug 16 13:30:36 EDT 2004
Philip Kilner wrote:
>> <GUID>
>> <span tal:replace="RequestRecord/GUID">GUID</span>
>> </GUID>
>>
>> ...e.g. I'm seeing the source rather than the output of the TAL
>> statements.
>>
>
> Re-reading that, I feel like a bit of a muppet - surely I should be
> using tal:content in my GUID tag, rather than using the (HTML) span?
You should, but that's not the problem. The problem is almost certainly
that you don't have an xmlns:tal="http://xml.zope.org/namespaces/tal"
declaration on your root element (or some other enclosing element). ZPT
in XML-mode requires explicit declaration of namespaces.
Cheers,
Evan @ 4-am
More information about the ZPT
mailing list