Re: [PHP3] Re: [PHP Template] Template Discussion

[email protected] (Kristian Koehntopp) Thu, 23 Mar 2000 22:57:10 +0100
Newsgroups php.template
Message-ID <[email protected]>
Thomas Jespersen wrote:
> I have not been following this "template" discussion before, but I
> just started looking at it today so perhaps I am wrong here, but:
> 
> Are the templates you want to make not more or less the same as XSL? 
> http://www.w3.org/Style/XSL/
> 
> I would certainly love to see a XSL Processor in PHP3.

XSL sucks raw eggs. I have no need for sed with syntactic sugar
or sendmail style pattern matching when I can have the full
power of PHP. I want to parse the HTML/XML in a file into a
document tree, then apply transformation functions written in
PHP to that tree and dump the resulting tree to a socket. 

As soon as I have that, I may look into a method to translate
XSL into PHP code and execute them so that I may read XSL
transformations as well, but that is no issue that I think is
particularly urgent. Why learn another language with less power
when I can achieve better results by using PHP directly?

Kristian

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)