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

FW: CSS in XML Documents

From: <JeanMichel.Leclercq@electrabel.com>
Date: Tue, 31 Jul 2001 10:31:39 +0200
Message-ID: <8D1414482878D4119AEE00508B6C907407A13F7B@SEACEX02>
To: www-style@w3c.org
In your previous css example, you had:

[...]
h1, h2, h3      {text-align: center;}
[...]

which becomes in xcss:

<selector element="h1" class="" pseudo="">
  <property name="text-align" value="center"/>
</selector>
<selector element="h2" class="" pseudo="">
  <property name="text-align" value="center"/>
</selector>
<selector element="h3" class="" pseudo="">
  <property name="text-align" value="center"/>
</selector>


I think that in this case, it would be better to keep the way of thinking
about grouping elements.

Then, I would propose an alternative:

<selector>
  <element name="h1" pseudo=""/>
  <element name="h2" pseudo=""/>
  <element name="h3" pseudo=""/>
  <property name="text-align" value="center"/>
</selector>

Each element will be associated with the set of <property> specified in a
<selector>.

What do you think about ?

/JM.
Received on Tuesday, 31 July 2001 04:33:32 GMT

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