[Grok-dev] XML output using a page template?

Sascha Boch sascha.boch at gmx.de
Wed Feb 16 08:07:05 EST 2011

I tried with this:

<?xml version="1.0" encoding="utf-8" ?>
<root xmlns:tal="http://namespaces.zope.org/tal">
    <function tal:repeat="f python: context.functions" tal:attributes="name f">

This does not give me an error but the tales expressions are not executed. Instead, I only get the code shown above. Where do I need to put the namespace declaration?

> Namespace declaration schould be in some element (usually root element 
> of Your element tree), not in preamble.
> In this example You produce bunch of <function> elements without root 
> element – I do not know if this is allowed – I think there schould be 
> one root element and then <function> elements as children.
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone

More information about the Grok-dev mailing list