Results 1 to 6 of 6

Thread: I need to do a "hard wrap" with XSLT FO

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    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

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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.

  3. #3

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    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

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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?

  5. #5

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    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

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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
  •  



Click Here to Expand Forum to Full Width