• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSL-FO to PDF using fop

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have a XML file, and a XSL-FO file created with XF Designer 2008, and a XSL file created with XF Designer 2008 too. I tried to transform the XSL-FO using apache fop 0.94 version to PDF or PCL, but I have errors.
The xsl-fo document have graphs, and bar code, and so much text, some error is some like de border and padding must be 0, from de body configuration.
Someone could help me?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

It would be helpful to see a minimal example of the XML and XSL-FO in question. That means excerpts that show exactly the problem and nothing else.

Be aware that FOP does not implement all of XSL-FO. Have you checked its documentation if this is maybe a feature that's (partly) missing?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found the FOP users mailing list to be very responsive on problems like this. They will also be interested in seeing a minimum example that demonstrates the problem.

Bill
 
Andrea Rodriguez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your help, I described a litle more my problem:

My XSL-FO file generated from my XML and the XSL generated with XF Designer 2008:


When I want process this XSL-FO file, with apache fop I have the following error:
07-07-08 12:17:59mainERROisf.domain.gcpr.XMLTransformHelperFOTrasform199transform(): org.apache.fop.fo.expr.PropertyException: Border and padding for region "xsl-region-body" must be '0' (See 6.4.13 in XSL 1.0).

To solve this problem, I put the the border and padding for region "xsl-region-body" in '0', but I have the following error:
07-07-08 12:45:10mainERROisf.domain.gcpr.XMLTransformHelperFOTrasform199transform(): org.apache.fop.fo.ValidationException: Error(Unknown location): For fo:simple-page-master, only one fo:region-start may be declared.

The lines that I�m running there are:


[ UD: removed the inline images to preserve the layout ]
[ July 07, 2008: Message edited by: Ulf Dittmer ]
 
Andrea Rodriguez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It could be that XSL file, generated with XF Designer 2008, is not apache fop compatible? Exist some other tools to process the XSL-FO file to generete PDF and PCL files?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is too much code to go through and try to understand. What William and I were asking for is a minimal example of the problem. That means to remove as much code as possible, so that you can't remove anything from the rest and still have it exhibit the problem. In other words, an SSCCE.
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic