Re: XML-based CSS

I wouldn't be a fan of xml syntax for css but maybe JSON or YAML.

It could look something like this:
<link rel="stylesheet" type="text/yaml" href="style.yaml">
- body :
      background: #fff
         width: 1px
         style: solid
      text-align: center
      font: {weight: normal, size: 12px, family: "Arial, sans-serif"}
- a : {text-decoration: none}
- ".myclass": {color: #bbb}

I personally like YAML as it is easier to read than XML, offers a couple
different ways to write it, and it's pretty easy to translate into JSON or

Honestly, if CSS adapted a more regimented syntax it might make the future
development of CSS easier.

Received on Wednesday, 26 November 2008 13:14:52 UTC