Recently in a lab assignment for school I had to create an XML schema for creating a book and then use CSS to directly style it. At first I felt the assignment was a bit of a WTF moment because so far as I’ve understood up until this point XSLT was the only way to transform a document for display purposes.
I am pleased to admit I was completely wrong and that not only can CSS be used to style XML directly it is also supported as a valid way of displaying XML according to the W3C.
The assignment as I developed it became an extremely fun way of utilizing XML and I was very pleased with the output. Imagine just having to style an element directly and bam your document is displayed exactly how you thought it would be right… right?
No, it won’t. Well that’s not completely true it will render 100% accurately in Internet Explorer but only in Internet Explorer. I tested it in Chrome and FireFail neither of which will even recognize that a style sheet is there or even attempt to use it. This is very disconcerting as I would love to utilize this technology for developing a content management system in the future. Its not to be I suppose. Instead the content must be translated to POS-HTML and go w/ the headache of attempting to make everything cross browser compliant.
My other curiosity is trying to fathom how both Google and Mozilla can be lauded as being at the forefront of web technologies compliance with their XML support is lacking… especially on a standard by the W3C. Granted its a rarely used technology but isn’t it both the aforementioned companies that have dinged Microsoft for picking and choosing what to support and what not too?
0 comments:
Post a Comment