css as xml?

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- 
serif;
	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" />
</tag>

All the benefits of XML in CSS?

Douglas

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