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

css as xml?

From: Douglas Livingstone <Douglas@neuance.net>
Date: Sun, 16 Feb 2003 10:23:31 -0500 (EST)
Message-ID: <oprko0zchswdxxee@mail.neuance.net>
To: www-style@w3.org

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:

<?xml version="1.0"?>
<tag value="body">
  <prop background-color="#EFEFEF" />
  <prop font-family="'Trebuchet MS', Trebuchet, Verdana, Arial, Helvetica, 
sans-serif" />
  <prop color="#000000" />
  <prop margin="75px 50px 0 0" />
  <prop padding="0" />
  <prop text-align="justify" />

All the benefits of XML in CSS?

Received on Wednesday, 19 February 2003 14:10:43 UTC

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