473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Apache FOP: generating valid xml:fo

I hope I'm not repeating a question or missing any good resources but I
really can't figure out the best way to progress with my problem. We'd
like to use apache fop to generate documents in both PDF and PCL format
- our email system will only take PDF and the fax system only PCL,
Apache FOP is spot on for this. However it is choking on whatever I
feed it, I think because not all the tags have been implemented.

Can anyone recommend me a good way of feeding a document in to FOP
other than by crafting the xml:fo myself in a text editor? We might
need "normal" people to make documents to go through this process, and
we will need tables. I've seen some XSLT for XHTML to xml:fo but of
course they don't take account of the fact that not all of the xml:fo
standard has been implemented.

Suggestions, pointers, and any other snippets or ideas would be most
welcome - and if I should be writing this xml file myself, then tell me
and I'll get started!

Thanks everyone

Lorna

May 11 '06 #1
4 2099
lo************@gmail.com wrote:
Can anyone recommend me a good way of feeding a document in to FOP
other than by crafting the xml:fo myself in a text editor?


As you said, XSLT stylesheets are the most common way to produce XSL:FO
(that's what they were originally designed for, after all). If FOP
doesn't support some features, the fastest solution may be to simplify
one of the existing stylesheets rather than reconstructing the behaviors
from the ground up. I suspect that if you ask on Apache's mailing list
for FOP, you'll find at least one source for already-modified versions...
May 11 '06 #2
Joe Kesselman wrote:
As you said, XSLT stylesheets are the most common way to produce XSL:FO
(that's what they were originally designed for, after all).


Are they? As a casual matter of historical curiosity, just what was
the sequencing between XSLT and XSL:FO ? Were they conceived as a
pair, or did one pre-date the other?

May 11 '06 #3
Andy Dingley <di*****@codesmiths.com> wrote:
Are they? As a casual matter of historical curiosity, just what was
the sequencing between XSLT and XSL:FO ? Were they conceived as a
pair, or did one pre-date the other?


As a pair. See info on the W3C's website.
May 11 '06 #4

lo************@gmail.com wrote:
I hope I'm not repeating a question or missing any good resources but I
really can't figure out the best way to progress with my problem. We'd
like to use apache fop to generate documents in both PDF and PCL format
- our email system will only take PDF and the fax system only PCL,
Apache FOP is spot on for this. However it is choking on whatever I
feed it, I think because not all the tags have been implemented.

Can anyone recommend me a good way of feeding a document in to FOP
other than by crafting the xml:fo myself in a text editor? We might
need "normal" people to make documents to go through this process, and
we will need tables. I've seen some XSLT for XHTML to xml:fo but of
course they don't take account of the fact that not all of the xml:fo
standard has been implemented.


Feeding XML and XSL to an XSLT process to generate XSL:FO is a good way
to automatically obtain FO without having to manually tag FO.

What is your original input? Are you using XML?

One thing is certain, If you are using FOP, you will have to go around
some of the application's FO tag limitations when you code your XSL
stylesheet. If you are only dealing mostly with text and tables then
PDF generation shouln't be too much of an issue (although you might
have to come up with a few programming tricks to work with table
alignment).

If the idea is to have "normal" people author a document in a regular
"word" format lookalike to then somehow have FOP convert to PDF
thereafter, you will have to think of the intermediary transformation
from text edit to XSL:FO. Are you building a custom application or is
this for personnal use? You might be looking at an XML editor that
outputs, for display, text and formatting for normal users to use. XML
which then would have to be transformed into XSL:FO with the help of
XSL which would then be fed to FOP for PDF creation.

If this if for personnal use, there are some available off the shelf
softwares that take in regular Word documents and convert them directly
to PDF; in which case you would be getting the full editing power of
word and the full flexibility of distribution of PDF.

<endrant/> :)

So the important question is. In what context will you be using the
application stream in?

Regards
Jeff

May 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Simon Harvey | last post by:
Hi there everyone, Am I right in thinking that you have to use XML:FO in order to make PDF files out of xml files? If this is the case then can someone explain why you have to use this other...
0
by: Jeremy | last post by:
Hi all, I'm playing with XML formatting objects, and have a question on how to insert an expanding vertical space (like <fo:leader>, but vertical) into a document. In LaTeX, this would be...
0
by: ABrillant | last post by:
Hi, EditiX 1.1 is now available at http://www.editix.com This release adds DTD, W3C XML Schema generator from a document, drag'n drop, extension for the project and fixes several bugs. ...
0
by: | last post by:
Hi, How can we conevert Xhtml(or xml) into Xml-Fo with C#. Is there any example project or snips code? regards Sam
6
by: Jean-François Michaud | last post by:
Hello, I'm having trouble figuring something out. I have to reproduce a PDF output and in the original document, "revision indicators" are used to show which parts of the document have changed...
2
by: mathieu | last post by:
Hello there, I have just started with XSL-FO and I have the following problem. I am not able to produce the proper pdf file. Here is what I have: http://gdcm.sourceforge.net/test.pdf here...
8
by: DarthLuch | last post by:
Would like to get feedback on a process we do, as well as suggested alternatives. We produce a software for the airline biz... One of the features is take take aircraft OEM provided SGML/XML...
4
by: kuldeep78 | last post by:
Hi , I am using XML-FO for pdf formating purpose. Wheneve i call clear method , it gives me com error and the description it gives is "NOT SET". Here is the code : IXFOObjPtr pAXFmt;...
0
by: irshadpeeran | last post by:
hello friends i need to generate XML file to PDF i know a little bit about XML FO. should i need to download XALAN and XERCES parser to work with it.i have downloaded it but im not sure whether its...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.