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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.