How would I dynamically generate a CSS stylesheet using php?
am 06.09.2007 18:45:23 von Macca
Hi
Im trying to think of a way to dynamically generate a stylsheet using
php that can be easily updated by a client.
My first thought was to generate the stylesheet as an XML document
first and then use the XML document to generate the stylesheet, and
whenever there is an update in the stylesheet it can be saved as an
XML document and parsed in PHP to generate the new stylesheet.
Does this sound reasonable?
Re: How would I dynamically generate a CSS stylesheet using php?
am 06.09.2007 18:57:18 von luiheidsgoeroe
On Thu, 06 Sep 2007 18:45:23 +0200, macca wrote:
> Hi
>
> Im trying to think of a way to dynamically generate a stylsheet using
> php that can be easily updated by a client.
>
> My first thought was to generate the stylesheet as an XML document
> first and then use the XML document to generate the stylesheet, and
> whenever there is an update in the stylesheet it can be saved as an
> XML document and parsed in PHP to generate the new stylesheet.
>
> Does this sound reasonable?
What is the exact reason you want an intermediate XML document? Are there
any other scripts then PHP involved?
--
Rik Wasmus
Re: How would I dynamically generate a CSS stylesheet using php?
am 06.09.2007 20:01:39 von Jerry Stuckle
macca wrote:
> Hi
>
> Im trying to think of a way to dynamically generate a stylsheet using
> php that can be easily updated by a client.
>
> My first thought was to generate the stylesheet as an XML document
> first and then use the XML document to generate the stylesheet, and
> whenever there is an update in the stylesheet it can be saved as an
> XML document and parsed in PHP to generate the new stylesheet.
>
> Does this sound reasonable?
>
It's reasonable. Makes parsing easier.
I'd also consider a database (I like databases :-) ), but it might be
overkill for something like this.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================