Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kukuwka 75 posts 96 karma points
    Nov 25, 2010 @ 10:37
    kukuwka
    0

    How to remove '	

 '

    Hi,
    How can I remove '	

 ' from src of image :
    <img  src="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;/images/Article.png&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;" />

    Thanks,

    kukuwka

  • Chriztian Steinmeier 2798 posts 8787 karma points MVP 7x admin c-trib
    Nov 25, 2010 @ 10:44
    Chriztian Steinmeier
    0

    Hi kukuwka,

    By the look of it, I'd say you're doing something like this:

    <img>
        <xsl:attribute name="src">
        /Images/<xsl:value-of select="SOMETHING" />
        </xsl:attribute>
    </img>

    I've boldfaced the problematic stuff - because you're mixing text and elements in the same container, the XML parser preserves all whitespace (said to be "significant").

    You can fix it by wrapping rogue textchunks in <xsl:text> instructions:

     <img>
        <xsl:attribute name="src">
            <xsl:text>/Images/</xsl:text>
            <xsl:value-of select="SOMETHING" />
        </xsl:attribute>
    </img>

    /Chriztian

  • kukuwka 75 posts 96 karma points
    Nov 25, 2010 @ 12:19
    kukuwka
    0

    Thank you very much.

Please Sign in or register to post replies

Write your reply to:

Draft