W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2008

Line breaks at a special char

From: BrutalDeluxe <niklas@nockebytryckeri.se>
Date: Tue, 19 Aug 2008 02:49:06 -0700 (PDT)
Message-ID: <19046951.post@talk.nabble.com>
To: www-xsl-fo@w3.org

I need to make a line break if the width exceeds a given value and for that
I've added the max-width-attribute to a block. However, I need a little more
control to this line break, I need to break at a special character. As an
example, look at this:

I have a email and when it exceeds 40 mm, I want to break it at the @ like
this

foo@
bar.com

Is it possible to do with XSLT/XSL-FO or do I need to write an extension
(hope not). This is how I want to do

<fo:block max-width="40mm" break-char="@"><xsl:value-of
select="//email"/></fo:block>

:)
-- 
View this message in context: http://www.nabble.com/Line-breaks-at-a-special-char-tp19046951p19046951.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Tuesday, 19 August 2008 09:50:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 August 2008 09:50:54 GMT