Re: [PHP-DEV] PHP XSLT extension From: Andi Gutmans (andi <email protected>)
Date: 06/25/00

On Sun, 25 Jun 2000 rubys <email protected> wrote:

>
>
> 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.

Sold as you think it is a good idea; or sold you're going to do it? :)

Andi

>
> - Sam Ruby
>
> P.S. I can't seem to get to the Sablotron web site at the moment...
>
>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>