Introduction
When you are using substring function to remove specific letters from XML by using XSLT. It also count the HTML tags.
So first remove HTML tags from XML and use substring function.Here is the example to remove html tags from XMl in XSLT
|
XSLT made -Remove template
<xsl:template name="remove">
<xsl:param name="letters"/>
<xsl:choose>
<xsl:when test="contains($letters, ‘<’)">
<xsl:value-of select="substring-before($letters, ‘<’)"/>
<xsl:call-template name="remove">
<xsl:with-param name="letters" select="substring-after($letters, ‘>’)"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$letters"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
|
here i removed HTML tags by using substring after and before function....
|
I called the remove template to my column
<div class="title">Title Name :
<xsl:call-template name="remove">
<xsl:with-param name="letters" select="@title"/>
</xsl:call-template></div>
|
This code will give you a best solution.
|