Why hasn't the rest of the CSS caught up with the rest of the XML specifications? There should be an XML spec, ala XHTML. So if it sounds interesting read on.
Premise:
CSS should be an XML Spec. I'll call it CSX (Cascading Style XML) for now.
General thoughts:
1. With the advent of XHTML, why is CSS a non DOM spec? If I can parse my XHTML document, why not CSS?
2. CSX could use XPath to address which elements the styling would be applied too.
3. Or the XHTML Dom elements could use the CSX namespace and CSX element to attach styles. This would most likely be the best method.
E.g.
4. CSX could either be inline or an external doc.
5.It could be used in app.config files for look and feel of WinForms, SVG docs or regular old ASP.
l
These are just some initial thoughts. I'll post more later.
Sean