473,396 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Wrap table column content

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.
Jul 20 '05 #1
1 3136
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)"/>

<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)"/>

<xsl:call-template name="text_wrapper">
<xsl:with-param name="Text" select="substring($Text,26)"/>
</xsl:call-template>
</xsl:template>
ra******@yahoo.com (Guru) wrote in message news:<ab**************************@posting.google. com>...
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.

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: foldface | last post by:
(reposting due to unrelated noise in original post) Hi In the example below on a normal size screen everything looks the way you would think it would (on IE6). My problem is what happens when I...
1
by: Guru | last post by:
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...
4
by: Alex Meier | last post by:
I have the following problem: I need a simple, tabular layout in a webshop. - left column: navigation column with approx. 170px width - right column: content area the goal: the left column...
7
by: slitvinov | last post by:
I am learning Relax NG. The problem is that I cannot figure out how to make a schema for a table. In my case I would like to make a table with any name of child elements (columns) but columns...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
10
by: Lorenzo Thurman | last post by:
I have a table cell that I want to wrap text inside of. I've tried both hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap just fine. Does anyone know how I can fix this?
5
by: momo | last post by:
say i have the following table: <table width="500"> <tr> <td width="250">this is the text im concerned with</td> <td></td> </tr> </table> i need the width of the columns to STAY at 250 and...
10
by: eholz1 | last post by:
Hello Members, I am setting up a photo website. I have decided to use PHP and MySQL. I can load jpeg files into the table (medium blob, or even longtext) and get the image(s) to display without...
1
by: Jacque Asse | last post by:
Sorry for a simple question: What is the trick to have the Column Headings on Queries to wrap-around versus remain on single line? I often use longer names to describe, tending to belonger than...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.