• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

XSL < symbol

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>
0
damianbek
Asked:
damianbek
3 Solutions
 
J_MakCommented:
Try this:

<TD onclick="showMovieTags()" style="cursor:hand"><span id="showFlag" class="tagName">-</span><SPAN class="openTag"><![CDATA[<]]></SPAN></TD>
0
 
dualsoulCommented:
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 :)
0
 
andrewssCommented:
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>
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now