W3C home > Mailing lists > Public > www-style@w3.org > July 2002

Re: CSS in XML format ?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 12 Jul 2002 13:41:55 +0100
Message-ID: <3D2ECE93.7050107@hixie.ch>
To: Rowland Shaw <Rowland.Shaw@crystaldecisions.com>
Cc: "'Patrick Andries'" <pandries@iti.qc.ca>, "'www-style@w3.org'" <www-style@w3.org>

Rowland Shaw wrote:
 >
> I also happen to agree with Ian Hickson; XML is not really suited to CSS as
> it is today, due to it's non treelike structure.
> 
> For the record, I'd refine his example to:
> <rule>
>  <selector> <!-- I guess there's nothing to stop you using Xpath queries
> instead -->
>   *:test &gt; test:*
>  </selector>
>  <declaration>
>   <property>color</property>
>   <value>
>    <rgba red="25%" green="100%" blue="0%" alpha="0.5" />
>   </value>
>  </declaration>
> </rule>
> But I still prefer (if only for it's conciseness):
> *|test > test|* { color: rgba( 25%, 100%, 0%, 0.5); }

That still leaves the selector in its original CSS form, and the four rgba 
values still unparsed. It also dropped all the comments, which is a big loss.

Also, this wouldn't easily handle the 'content' property in a consistent manner. 
(see the penultimate rule in the stylesheet in my last post [1]).

[1] http://lists.w3.org/Archives/Public/www-style/2002Jul/0027.html

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 12 July 2002 08:42:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:15 GMT