« 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).

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.

My Photo

July 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