Re: [xsl] XSL:FO - How to wrap non-word strings in table cells?

Subject: Re: [xsl] XSL:FO - How to wrap non-word strings in table cells?
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 01 Oct 2003 18:41:39 -0400
At 2003-10-01 17:45 -0400, Jon Allen wrote:
I have long non-word string values in a table that are running off the page.
Most of these values contain no spaces at all.
I would like them to wrap to the next line in the same cell, without inserting a hyphen or other character.

If you insert the zero-width space character (using &#x200b; or &#8203;) periodically through the string, then it will break at this character where necessary and any others where it is not necessary will not be seen.

I used this in very long URL strings, adding this character after every slash. Where it isn't needed it isn't seen and where there needs to be a break it happens right after the slash.

It is a very clean approach, visually.

I hope this helps.

..................... Ken

Next public US delivery:        3-day XSLT/2-day XSL-FO 2003-10-13
Next public European delivery:  3-day XSLT/2-day XSL-FO 2003-11-??
Instructor-led on-site corporate, government & user group training
for XSLT and XSL-FO world-wide:  please contact us for the details

G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                       Definitive XSLT and XPath
ISBN 0-13-140374-5                               Definitive XSL-FO
ISBN 1-894049-08-X   Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X               Practical Formatting Using XSL-FO
Member of the XML Guild of Practitioners:
Male Breast Cancer Awareness

XSL-List info and archive:

Current Thread