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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--