W3C home > Mailing lists > Public > www-style@w3.org > February 2003

css as xml?

From: Douglas Livingstone <lists@neuance.net>
Date: Mon, 17 Feb 2003 21:38:49 +0100
To: www-style@w3.org
Message-ID: <oprkraazqy8hptl8@mail.neuance.net>

One time, I heard someone talking about how they would one day be able to 
write an HTML document in French, replacing <body> with <corps> and then 
convert it to "real" HTML with XSLT. But, that poses a problem with CSS, it 
would still  have to use "body".
Then I remembered this from the W3C recommendations:
 'XHTML 1.0, a reformulation of HTML 4 as an XML 1.0 application'
- http://www.w3.org/TR/xhtml1/
So, how about this?
 'XCSS 1.0, a reformulation of CSS1/2/3 as an XML 1.0 application'
So, in the general idea, this:
body {
background-color: #EFEFEF;
font-family : "Trebuchet MS", Trebuchet, Verdana, Arial, Helvetica, sans- 
color: #000000;
margin: 75px 50px 0 0;
padding: 0px;
text-align: justify;
 could be written as:

<tag value="body">
  <prop name="background-color" value="#EFEFEF" />
  <prop name="font-family" value="'Trebuchet MS', Trebuchet, Verdana, 
Arial, Helvetica, sans-serif" />
  <prop name="color" value="#000000" />
  <prop name="margin" value="75px 50px 0 0" />
  <prop name="padding" value="0" />
  <prop name="text-align" value="justify" />
All the benefits of XML in CSS?
Received on Monday, 17 February 2003 15:46:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:05 UTC