473,769 Members | 7,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2139
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*****@codesm iths.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
11094
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 technology instead of just using XSL. For making HTML pages, I just use XSL, after all, it has been touted as the solution to all our presentation woes. But if this is the case, why then does pdf require this other technology, and what exactly does...
0
1628
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 roughly equivalent to a \hfil I have a document with a table, which has a variable number of items. I want the footer of this table to always appear at the bottom of the page, regardless of the number of items (the table isn't likely to fill
0
1349
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. EditiX is a cross-platform powerful and easy to use XML editor designed to help web authors and application programmers take
0
1188
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
1381
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 since last version. This revision indicator simply looks like a border to the left of the page, but is always located at the same distance from the edge of the page. Ouputing a border on the containing block doesn't work because the blocks are...
2
1453
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 is what I should have: http://www.antennahouse.com/XSLsample/pdf/sample-table_1.pdf
8
6014
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 data, mix it with data from our own application, and show a PDF print of it. We save our own data as xml, merge it with the OEM xml data, and use a stylesheet to control how we want it to look. We use Apache FOP to turn it into a PDF. ...
4
1776
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; EVAL_HR(pAXFmt.CreateInstance("AXFOSVR.XFOObj"),_T("FOProcessing tried to instantiate AXFOSVR.XFOObj"));
0
1277
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 xalan and xerces xalan-j_2_7_1-bin-2jars and Xerces-J-bin.2.9.0. can u help me in this regards any parser is needded to generate pdf and if so where can i download it.can i get to know how to comile and generate pdf from xml??? please reply me
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.