« XML and CSS | Main | Software licenses »

Comments

Andrew Houghton

As far as the W3C recommendation for embedding a stylesheet, you might try changing the MIME type on the xml-stylesheet directive to text/xsl for IE. IE understands two MIME types for xml-stylesheet directives: text/css and text/xsl. The section in the W3C recommendation shows the MIME type as text/xml, but the text in that section does not issue a recommendation as to what MIME type should be used, hence browser dependent. IE choose to use the MIME type that is used for standalone XSLT documents. Not an unreasonable choice.

It still might not work IE, but give that go.

Thom

I'm pretty sure I did try that, since text/xml didn't get me anywhere, but couldn't get it to work.
--Th

HermannSW
The W3C describes how you can embed a stylesheet within an XML file and then refer to it, allowing the document to transform itself. Unfortunately IE and Firefox don't seem to support this, ...
You may want to use the technique described in this posting: http://forums.devshed.com/showthread.php?p=2420740#post2420740

It provides support of stylesheet embedding for ALL browsers (including IE, FF supports it already).

The comments to this entry are closed.

My Photo

October 2014

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31