문제

I have added a conditional comment in XSL like

 <xsl:comment>          
    <![CDATA[
       [if IE]>
         <script type="text/javascript">
             registerDisplay = firstChild.currentStyle.display;
         </script>
       <![endif]            
     ]]>
 </xsl:comment>

I'm not seeing this my html source in IE. Any help is appreciated.

도움이 되었습니까?

해결책

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top