Re: [PHP3] F@#k the templates - who needs them with XML and XSL ?

[email protected] (Jirka Kosek) Wed, 22 Mar 2000 11:01:44 +0100 (CET)
Newsgroups php.template
Message-ID <[email protected]>
On Wed, 22 Mar 2000, Lukasz Felsztukier wrote:

> > In fact, with the method Rasmus proposes, I imagine it would be possible to
> > include a basic template definition file as the defactor "core" for PHP3,
> [cut]
> Why learn some custom-made stuff when there are official specs - let's respect
> them and use them.
> XML and XSL have all the template functionality plus more!

XML and XSL is often to intelligent technology for simple tasks. You can
also have look at JSP (Java Server Pages) which have something called
template librarires. Template library is a set of defined tags, which you
can use in your files. Each tag is mapped to call of some code (in JSP
this is some Java class or bean component). This approach is unable to
define your own separators of templates from surrounding HTML code, but
have ability to use tag libraries in several files.

I must agree with Lukasz that it would be better to build on XML, because
than you can use plenty of XML tools to create your files with templates
-- editors (even visual) and so on.

-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: [email protected]
  http://www.kosek.cz