Hi,
Sorry! I forgot to check again what i exactly pasted from my textpad after typing.
whats going on with me.
This is my question.
I want to split 'n' number of characters into 35 characters per line AND with a maximum of 5 lines and strip off rest of the characters. I'm doing this for xsl:fo.
As usual (after i got failed) i copied the code from
http://www.dpawson.co.uk/xsl/sect2/N7240.html#d60e246 But to stripoff characters more than 5 lines,i have to count the number of lines it has printed already.
so that i can code something like this in the above code after <xsl:text></xsl:text> line.
<xsl:if test="$lineCnt & l t; $maxLine">
<xsl:call-template name="format">
<xsl:with-param select="substring($txt,$real-width + 1)" name="txt"/>
<xsl:with-param select="$width" name="width"/>
</xsl:call-template>
where maxLine is 5 and the lineCnt will increase after printing each line.
But I couldn't able to do it as xsl doesn't support changing value.
I'm missing the logic here,i think i have to do something with recursive funtion.
Please help!!
Thanks
[ July 03, 2002: Message edited by: Balaji Loganathan ]