FW: CSS in XML Documents

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 UTC