I've noticed IE conditional statements don't work in the transformed XML document. How do I get IE 6 and above to process them.
Code as follows
'<!--[if IE 6]><style type="text/css" media="all">@import "/css/ie6.css";</style>'
Thanks.
I've noticed IE conditional statements don't work in the transformed XML document. How do I get IE 6 and above to process them.
Code as follows
'<!--[if IE 6]><style type="text/css" media="all">@import "/css/ie6.css";</style>'
Thanks.
This works for me with IE8:
XML file:
deleteIECond.xsl:
You can verify that this works. If negative, the most likely reason is security/permissions.
Also, please, note, that this isn't an XSLT question.
In the end, I had to use a doctype in the document. IE was going into quirks mode without it and that's why I needed a conditional stylesheet in the first place.