Conditional Stylesheets
This is an open discussion with 5 replies, filed under XSLT.
Search
There is a “manual mode” as well: Simply put s.th. like th following in your master template:
<xsl:comment><![CDATA[[if IE 6]><link rel="stylesheet" type="text/css" href="]]><xsl:value-of select="$root"/><![CDATA[/workspace/assets/css/ie6patches-1.0.css" media="screen" /><![endif]]]></xsl:comment>
I didn’t think you can add ]]><xsl:value-of select="$root"/><![CDATA[
in the middle. That works? Interesting.
Sure! Works like hell. Took me about to one day to figure it out… The main idea is: Start and terminate your CDATA sections properly.
Works fine!
Thanks!
Create an account or sign in to comment.
Hi,
How can I put a conditional stylesheet to my XSLT template? Is it possible?
Thanks a lot.