|
-
May 22nd, 2006, 07:53 AM
#1
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?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
May 22nd, 2006, 08:35 AM
#2
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.
-
May 22nd, 2006, 08:59 AM
#3
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
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
May 31st, 2006, 01:41 AM
#4
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?
-
Jun 5th, 2006, 05:55 AM
#5
Re: I need to do a "hard wrap" with XSLT FO
I did too . 1.0, I believe.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 5th, 2006, 07:27 AM
#6
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|