I need to do a "hard wrap" with XSLT FO
Normal word wrapping occurs on whitespace between the words, but if I have one big word with no spaces, I want to have that word wrap down after the available space is taken.
For example...
ThisIsAReallyLongPieceOfTextToBeWrapped
would become
ThisIsARea
llyLongPiec
eOfTextTo
BeWrapped
Can this be done strictly through XSLT FO? Or do I need to manipulate the data myself somehow?
:afrog:
Re: I need to do a "hard wrap" with XSLT FO
You could make a template function to do that manually, I don't know of a builtin method.
Re: I need to do a "hard wrap" with XSLT FO
Teach me Mr Fish.
I'm not too familiar with the whole concept. Do you have some idea off the top of your head?
Thanks
Re: I need to do a "hard wrap" with XSLT FO
Sorry, I forgot all about this thread.
Are you using XSLT 1.0 or 2.0?
Re: I need to do a "hard wrap" with XSLT FO
I did too :rolleyes:. 1.0, I believe.
Re: I need to do a "hard wrap" with XSLT FO
As far as I know you need to use named templates and the <xsl:call-template> element.
Example?