this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Cell Data overlapping while generating pdf Options · View
Posted: Friday, April 7, 2017 6:26:57 AM
Rank: Newbie

Joined: 4/7/2017
Posts: 1
Location: India
Hi Team,

I have been facing an issue while generating pdf using Apache FOP in Altova Style Vision, that “Long text flows into adjacent cells/block” in table when there are no spaces between words.
I have been generating the XSLT using Altova Style Vision.

Can you please help me if there is any attribute that will resolve this issue.
Posted: Friday, April 7, 2017 9:18:50 AM
Rank: Advanced Member

Joined: 9/9/2005
Posts: 483
Location: AT

Wrapping behaviour in table cells (or any other container too narrow for the widest string it contains) is a common problem. To "wrap" a long string which does not contain spaces the solution is to insert a Unicode zero-width space character after every character in your string. Then, it will wrap wherever necessary in the output.

You can do this using an Auto-Calculation by substituting the following XPath expression for the (contents).

string-join( for $x in ( string-to-codepoints( . ) ) return codepoints-to-string( $x ), codepoints-to-string( 8203 ) )

Note that this approach requires the use of XSLT 2.0

paul attached the following image(s):

Users browsing this topic

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.