I've done ab bit of web-searching and found nothing. Are there any attempts on using CSS for LaTeX formatting? For example:
body { font-family: Helvetica,Arial,sans-serif; }
section { font-size: 16pt; }
/* or: */
h1 { font-size: 16pt; }
I know that this approach is limited compared to the classic approach, but it could be a nice attempt. So are there any published papers or code pieces?
I'd like to write in the preamble of my LaTeX document: \usestylefile{foo.css} and have the text rendered as written in the given style file (and its linked style files).

<h1> .... </h1>would mean\begin{h1} ... \end{h1}? – percusse Nov 21 '11 at 14:04\section{...}and have its appearance as defined in the css stylesheet. – topskip Nov 21 '11 at 14:08.clsfile. I am not sure if it can be directly read by compiler. – percusse Nov 21 '11 at 14:12head .section {text-color: blue; text-style: bold}could be translated to\setuphead[section][textcolor=blue, textstyle=bold], so you will get the corresponding style in the output. – Aditya Nov 21 '11 at 19:48text-colorbycolor). So, IMO, all you need to do is come up with a consistent, key-value driven document mode. Then translating CSS style to TeX style is easy. – Aditya Nov 21 '11 at 22:14