Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - Re: [xsl] Calling a template recursively Calling a template recursivelyTo: Date: 7/1/2004 9:14:00 PM Hello List,
I am using following template to display a
<br> tag after every 25th character of the string. But
that does not seem to work.
<xsl:template name="normaliseString">
<xsl:param name="releaselevel"/>
<xsl:variable name="temp"
select="substring($releaselevel,1,25)"/>
<xsl:value-of select="$temp"/>
<xsl:text><br> </xsl:text>
<xsl:if test="string-length($releaselevel) >25">
<xsl:variable name="temp2"
select="substring($temp,26,string-length($releaselevel))"/>
<xsl:value-of select="$temp2"/>
<xsl:call-template name="normaliseString">
<xsl:with-param name="releaselevel"
select="@temp2"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
any suggestion.
regards,
Ranjan
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
