phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] TemplateEngine Question/Proposal


From: Dan Kuykendall
Subject: Re: [Phpgroupware-developers] TemplateEngine Question/Proposal
Date: Mon, 04 Aug 2003 11:53:56 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

Alex Borges wrote:

I have not looked at the new xslt tpl engine, but afaik it has extra
functionality to do the tranformations.
Thats ok, but there is still no requirement (from my point of view) to
copy/paste the code
and modify it. It would be better to first use the phplib template engine to
fill in values
into an xml template, handle blocks etc. and then in a second step xsl
transform the resulting
xml document. So xslttemplate is for me another abstraction layer ontop of
the existing template engine.

I guess what would make sense (bear in mind i havent grokked any of the
template classes in depth), is to subclass the phplibs template to make
the xslt. I dont know whats different about xslt from plain html but i
can think of some instances from my limited knowledge (xml/xslt has
display logic in it, html has none of that).


It would be a terrible mess if you tried to use phplib template with xslt template. xslt already has the abilities to do some logic, and if you just use it well, it will do everything you need all on its own.

Dan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]