XSL < symbol

Posted on 2004-11-12
Last Modified: 2010-05-18
I need to print the "<" symbol in xsl.
This is my code, and not works.
<TD onclick="showMovieTags()" style="cursor:hand"><span id="showFlag" class="tagName">-</span><SPAN class="openTag">&#60</SPAN></TD>
Question by:damianbek
    LVL 7

    Accepted Solution

    Try this:

    <TD onclick="showMovieTags()" style="cursor:hand"><span id="showFlag" class="tagName">-</span><SPAN class="openTag"><![CDATA[<]]></SPAN></TD>
    LVL 15

    Assisted Solution

    or you can do:  &lt;

    or <xsl:value-of select="'&lt;'" />

    or <xsl:value-of select="'&amp;lt;'" disable-output-escaping="yes"/>

    or if you need exactly '<' in output, not '&lt;':
     <xsl:value-of select="'&lt;'" disable-output-escaping="yes"/>

    so lot capabilities :)
    LVL 1

    Assisted Solution

    You are just missing the semi-colon on the end of your ascii code &#60;

    <TD onclick="showMovieTags()" style="cursor:hand"><span id="showFlag" class="tagName">-</span><SPAN class="openTag">&#60;</SPAN></TD>

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
    Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now