Cascade stripping IE conditional statements on publish.

turnerjd's Avatar

turnerjd

31 Jan, 2011 07:57 PM

When I insert an IE conditional such as <!--[if !IE]>Not IE <![endif]--> into a format, it strips it on publish. How can I get Cascade to not touch my code. Tried <!--#START-CODE #END-CODE--> .. no go

  1. Support Staff 1 Posted by Tim on 09 Feb, 2011 07:03 PM

    Tim's Avatar

    My guess is that you are using an XSLT Format as opposed to a Velocity Format. Is that correct? If you enter <!--[if !IE]>Not IE <![endif]--> directly into an XSLT Format, the XSL processor will view this as a comment in the XSL document and will not output the comment on your rendered page. If this is the case, try something like this:

    <xsl:comment><![CDATA[[if !IE]>Not IE <![endif]]]></xsl:comment>
    

    This should create an HTML comment in the resulting transformation.

    I was able to do this and publish without any problems. If you continue to have problems, let me know which version of Cascade Server you are running along with what type of Format you are using.

    Thanks

  2. 2 Posted by turnerjd on 09 Feb, 2011 07:51 PM

    turnerjd's Avatar

    Thx Tim I'll try that out!

  3. Tim closed this discussion on 14 Apr, 2011 08:14 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac