Categories
Software and Programming

XML + CSS

Scott Andrew has a nice article about XML Transformations with CSS and DOM. I’ve already added a stylesheet to one of my RSS files, but Andrew is much better at writing CSS (and handling font choice, margins, etc.) than I am.

My RSS file looks odd with Andrew’s sample stylesheet (because of all the unstyled bells and whistles of the RSS2 template I got off Mark Pilgrim), but I wonder if I can set it as an alternate style sheet, as per the W3C spec.

Testing… Nope, doesn’t work. In Mozilla, which has a menu option for switching alternate style sheets, it doesn’t show up, and in IE, it picks up the 2nd style sheet (the alternate) and uses it.