Re: PHP XSLT extension

From: Date: Sun, 25 Jun 2000 19:11:46 +0000
Subject: Re: PHP XSLT extension
Groups: php.dev 
Request: Send a blank email to php-dev+get-22294@lists.php.net to get a copy of this message
Andi Gutmans wrote: >> I am not sure I quite understand this. Do you mean a mechanism for >> automatically >> choosing a stylesheet according to the requesting user agent? > >No I mean the PHP script could decide what stylesheet the PHP output >support should use. It just needs to decide before it starts outputting >the data which you want a stylesheet applied to. I originally had considered this and rejected it. For the wrong reason. In Cocoon, one defines a pattern of URLs which are to be mapped to a pipeline consisting of a generator, any number of filters, and a serializer. Most importantly, one could change the style of an entire site by changing a single line in a sitemap. In PHP, this same effect could be achieved via a require ('header.inc'). In cocoon, there is considerable debate on how to represent logic in the sitemap - in PHP this would not be an issue. I'm sold. - Sam Ruby P.S. I can't seem to get to the Sablotron web site at the moment...

« previous php.dev (#22294) next »