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.
I've noticed IE conditional statements don't work in the transformed XML document
This works for me with IE8:
XML file:
<?xml-stylesheet href="deleteIECond.xsl" type="text/xsl" ?>
<t/>
deleteIECond.xsl:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:comment>[if gte IE 7]>
<SCRIPT LANGUAGE="Javascript">
alert("Congratulations! You are running Internet Explorer 7 or greater.");
</SCRIPT>
<P>Thank you for closing the message box.</P>
<xsl:value-of disable-output-escaping="yes" select="'<![endif]'"/>
</xsl:comment>
</xsl:template>
</xsl:stylesheet>
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.