|
Subject: Calling a template recursively From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx> Date: Fri, 2 Jul 2004 04:14:22 -0700 (PDT) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Fwd: [exslt] param problem, xptm | Thread | Re: [xsl] Calling a template recurs, David Carlisle |
| Fwd: [exslt] param problem, xptm | Date | Re: [xsl] Calling a template recurs, David Carlisle |
| Month |