If you're unlucky with the xsl:comment, I think alternatively you could use
<xsl:text disable-output-escaping="yes"><![CDATA[<!--[if IE]>
<script type="text/javascript">
registerDisplay = firstChild.currentStyle.display;
</script>
<![endif]-->]]>
</xsl:text>