XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Paul McCormickSubject: XLS:FO line break problem
Author: Paul McCormick
Date: 10 Sep 2007 11:31 PM
I have some text like that includes product identifiers. The product identifiers contain a white space. I want the text to wrap automatically but I don't want a line break to occur between a product identifier. I've tried using the keep-together and wrap options properties.

Here is an extract of the xls:fo that I does not work correctly.

<fo:table-cell>
<fo:block>Here are some product identifiers:
<fo:inline keep-together="always" wrap="no-wrap">
M 20/23
</fo:inline>
<fo:inline keep-together="always" wrap="no-wrap">
M 45/16
</fo:inline>
<fo:inline keep-together="always" wrap="no-wrap">
M 74/1611
</fo:inline> </fo:block> </fo:table-cell>

Postnext
(Deleted User) Subject: XLS:FO line break problem
Author: (Deleted User)
Date: 12 Sep 2007 03:38 AM
Hi Paul,
which XSL:FO renderer have you selected in the scenario dialog?

Thanks,
Alberto

Postnext
Paul McCormickSubject: XLS:FO line break problem
Author: Paul McCormick
Date: 12 Sep 2007 04:54 AM
I'm using Apache FOP, iText 2.0.2 in a Java 1.4.2 WebSphere 6 server.

Postnext
(Deleted User) Subject: XLS:FO line break problem
Author: (Deleted User)
Date: 12 Sep 2007 06:22 AM
Hi Paul,
the documentation for Apache FOP states that keep-together is only partially supported: see http://xmlgraphics.apache.org/fop/compliance.html#fo-property-keep-together

Hope this helps,
Alberto

Postnext
Paul McCormickSubject: XLS:FO line break problem
Author: Paul McCormick
Date: 12 Sep 2007 07:38 AM
Thanks for the information. Do you know a java FO render that supports the keep-together attribute that you would recommend. It doesn't have to be open source.

Thanks,
Paul

Postnext
(Deleted User) Subject: XLS:FO line break problem
Author: (Deleted User)
Date: 12 Sep 2007 08:36 AM
Hi Paul,
you can try using the RenderX engine; just select it in the scenario dialog and verify if its support for keep-together is complete enough.

Hope this helps,
Alberto

Posttop
Paul McCormickSubject: XLS:FO line break problem
Author: Paul McCormick
Date: 13 Sep 2007 04:39 AM
I've over came the problem by replacing the spaces with &#160;

I then used the disable-output-escaping property on the fo:block.
e.g
<fo:table-cell>
<fo:block disable-output-escaping="yes"/>
M&#160;20/23 M&#160;45/16 M&#160;74/1611
</fo:block>
</fo:table-cell>

Paul

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.