Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Wrap table column content

From: rampaadh@-----.--- (----)
To: NULL
Date: 10/2/2004 5:36:00 AM
Finally i solved the problem 
by inserting zero width white spaces at regular intervals.
Thanks to FOP mailing list..!

								
<xsl:call-template name="text_wrapper">						<xsl:with-param
name="Text" select="$myString"/>
</xsl:call-template>


===Templates used to do the task.
	<xsl:template name="text_wrapper">
		<xsl:param name="Text"/>
		<xsl:choose>
			<xsl:when test="string-length($Text)">
				<xsl:value-of select="substring($Text,1,25)"/>
				&#8203;
				<xsl:call-template name="wrapper_helper">
					<xsl:with-param name="Text" select="substring($Text,26)"/>
				</xsl:call-template>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="wrapper_helper">
		<xsl:param name="Text"/>
		<xsl:value-of select="substring($Text,1,25)"/>
		&#8203;
		<xsl:call-template name="text_wrapper">
			<xsl:with-param name="Text" select="substring($Text,26)"/>
		</xsl:call-template>
	</xsl:template>


rampaadh@y... (Guru) wrote in message news:<ab9532c9.0409300001.66ecb5d4@p...>...
> Hi,
> 
> I am using FOP for creating pdf.
> I am having a table which has 14 columns.
> And each column contents may contain any
> number of chars.
> 
> My problem is :
> When the text is having no spaces in between like
> "thisisalongwordandcouldnotbewrapped", it is overlapping
> another column. How to wrap the text with in the cell.??
> 
> I used wrap-option="wrap"  overflow="auto", but no luck.
> Is there any solutions for this?
> 
> Guru.


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent