I want to create conditional comments in XSLT.
But when I use this:
<!-- [If IE7] [endif] -->
in an <xsl:comment>, XSLT removes it from the output when it is rendered.
Is there any way to create conditional comments in XSLT?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simply use an
<xsl:comment>tag and include your comment within the tag.For example:
Taming Your Multiple IE Standalones is a great article on this subject.