Posted by David Gillen on 09/07/07 08:55
Jerry Stuckle said:
> 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.
>
Plus the structure of CSS lends itself very nicely to being defined with XML.
You may want to set the appropriate mime type header for a CSS file in your
script though before you start any output.
D.
--
Fermat was right.
Navigation:
[Reply to this message]
|