I need < and > without leaving space.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rengaraj
    New Member
    • Jan 2007
    • 168

    I need < and > without leaving space.

    Sir / Mam,
    I can replace < with &lt; or &60# and 62 for >
    But,
    If i need the following text

    <code># include <stdio.h> </code>
    i will write as
    <code># include &lt; stido.h &gt;</code>
    it displays as

    # include < stdio.h>

    But i need without any space between < and stdio

    If i use
    <code># include &lt;stido.h &gt;</code>

    The text stdio.h is not displayed.
    Please provide me the solution.
    There should not be any space after < symbol.
    Advance Thanks,
    Rengaraj.R
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Tested it myself and I couldn't verify your problems. "<code># include &lt;stdio.h&gt; </code>" displayed as "# include <stdio.h>".

    maybe it helps to use CDATA output... you could also let me have a look at the complete xsl, maybe there's something I can tell.

    regards

    Comment

    • rengaraj
      New Member
      • Jan 2007
      • 168

      #3
      Sir,
      Please send me the file
      to rengaraj_ramanu jam@yahoo.co.in

      Sir i am new be.
      Please
      Advance Thanks,
      Rengaraj.R

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        this won't probably tell you much, since I used only the necessary code and I completely neglected the input xml. (output by FF 3.01/mac)
        Code:
        <?xml version="1.0" encoding="iso-8859-1" ?>
        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="text" encoding="iso-8859-1"/>
               
        <xsl:template match="/">
            <code># include &amp;lt;stdio.h&amp;gt;</code>
        </xsl:template>
              
        </xsl:stylesheet>
        regards

        Comment

        • jkmyoung
          Recognized Expert Top Contributor
          • Mar 2006
          • 2057

          #5
          Can you also say what type of code you're using? Is it C#? XSLT?

          Comment

          Working...