Trimming characters in xslt


My xslt is displaying value from code
<xsl:value-of select="summary" disable-output-escaping="yes" />

I wanted if text is more than 130 character then after 124 character all character should be trimmed and should be replaced my 3 dots (...)

"truid today announced some great deals for families looking for a fantastic value break this summer, including kids go free..."

I am rendering XSLT and XML from .net2.0 using c#

Please advice

Who is Participating?
Geert BormansConnect With a Mentor Information ArchitectCommented:
            <xsl:when test="string-length(summary) > 130">
                <xsl:value-of select="summary" disable-output-escaping="yes" />
                <xsl:value-of select="substring(summary, 1, 124)" disable-output-escaping="yes" />

Open in new window

tia_kamakshiAuthor Commented:
Many Thanks Gertone
Geert BormansInformation ArchitectCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.