[xsl] Center string

Subject: [xsl] Center string
From: Frédéric Schwebel <Frederic.Schwebel@xxxxxxxxxxxxxxxx>
Date: Thu, 11 Jun 2009 13:42:03 +0200
Hi folks,

Just curious if it has already been done : I need to center a string
with a max line length. The words must be uncut and balanced between
lines.

Example :
----------------
(mathimatiques niveau lycie: sirie
                   '1
----------------- is incorrect

           (mathimatiques
          niveau lycie: sirie
                   '1
----------------- is incorrect

 (mathimatiques niveau
       lycie: sirie '1
----------------- is correct

Centering the lines is not a problem. The most difficult part is to
balance words with line-length. Did somebody already do this with XSL
?
Thanks for any help,
Frederic

Current Thread