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 ]
Originally posted by Balaji Loganathan: [QB]Thks Rene, I tried it,but its printing 0 in all occurences,I tried to place it in all possible place i can. Basically what i tryin is Input: My little fox brown is blah blah end. Output: My lit tle fo x brow n is b lah bl Condition is "max n lines(say 6),max 6 characters per line,strip of rest. This I'm doing this for XSL:fo because in xsl:fo if i allow more than 5 lines in a table,its renders to second page, which it shoud not.