[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] output IE conditional comment using XSL


Subject: Re: [xsl] output IE conditional comment using XSL
From: xptm <xptm@xxxxxxx>
Date: Sun, 12 Dec 2004 22:36:00 +0000

Pass a parameter to the stylesheet

<xsl:param name="browser" select="IE"> --> select is the default value if no value is passed as param.

<xsl:if test="browser='IE'>
   <style type="text/css" media="screen">
       @import url("css/spc-web-ie.css");
   </style>
</xsl:if>

Then, when you call the xsl, passing the param as well. Maybe from Javascript, if that's the case.

Wong Chin Shin wrote:

Hi,
I'm trying to output the following code block using xsl:comment

<!--[if IE]>
<style type="text/css" media="screen">
@import url("css/spc-web-ie.css");
</style>
<![endif]-->

Any pointers as to how to do this?
Thanks!
Wong


Current Thread
Keywords
xsl