[Grok-dev] Re: guidance for incorporating XSLT as alternative templating mechanism?

Martijn Faassen faassen at startifact.com
Thu Dec 20 06:57:02 EST 2007

On Dec 20, 2007 12:11 PM, Lennart Regebro <regebro at gmail.com> wrote:
> On Dec 20, 2007 10:15 AM, Martijn Faassen <faassen at startifact.com> wrote:
> > I want your opinion on using your existing template language
> > pluggability to allow the use of XSLT as a template language. Not all
> > this other stuff. :)
> Oh,  You mean having templates that are written in XML, but then
> translating them with XSLT as a part of the template rendering?

No, I don't understand what you mean?

I mean that the content produces XML (for instance through some python
code, or by some automatic form of translation):

class MyView(grok.View):
   def xml(self):
        return "<data><a>1</a><b>Foo</b></data>"

myview.xslt (broken XSLT here, I don't have the syntax at the top of my head):

<p><xsl:value-of path="/data/a" /></p>



More information about the Grok-dev mailing list