Mr Initial Man
10-05-2009, 01:29 PM
In a thread discussing an XSL article, Charles said of XSL:
It's there to describe how to transform XML to any other text based format.
The emphasis is mine. According to this, it should be possible to transform XML into CSS, so I simply HAD to try. So it's all your fault, Charles.
I've got the two files created. The XML file is at http://coachrandom.furtopia.org/Style/CSS/comic_style.xml and the XSL sheet is at http://coachrandom.furtopia.org/Style/style_ml.xsl . The text appears as a stylesheet.
The final hurdle: to get it to WORK as a stylesheet. As you can see by the page at http://coachrandom.furtopia.org/Chronological/comic-001a.xml, that hurdle hasn't been reached yet. (The XSL for this is at http://coachrandom.furtopia.org/Style/chron_pages_try.xsl)
And, yes, I KNOW I could simply write it as a simple CSS document, but what's the fun in that? :D
So, how do I get this hideous abuse of XML, XSL, and complete abandonment of common sense to work?
EDIT: After this: XML into JavaScript.
It's there to describe how to transform XML to any other text based format.
The emphasis is mine. According to this, it should be possible to transform XML into CSS, so I simply HAD to try. So it's all your fault, Charles.
I've got the two files created. The XML file is at http://coachrandom.furtopia.org/Style/CSS/comic_style.xml and the XSL sheet is at http://coachrandom.furtopia.org/Style/style_ml.xsl . The text appears as a stylesheet.
The final hurdle: to get it to WORK as a stylesheet. As you can see by the page at http://coachrandom.furtopia.org/Chronological/comic-001a.xml, that hurdle hasn't been reached yet. (The XSL for this is at http://coachrandom.furtopia.org/Style/chron_pages_try.xsl)
And, yes, I KNOW I could simply write it as a simple CSS document, but what's the fun in that? :D
So, how do I get this hideous abuse of XML, XSL, and complete abandonment of common sense to work?
EDIT: After this: XML into JavaScript.