Hello, I'm using FOP 0.95-1. In my RTF document I would like to pad an
entire fo:table one inch to the right. If I apply margin-left to the
fo:table tag, it ends up padding not only the table (good) but every cell
within the table's body (bad)--they also get moved off to the right within
their
J.Pietschmann wrote:
Hmm, Transformers can't be reused, perhaps you should get a new
instance here?
Oh, I did not know that. Thanks for the info.
J.Pietschmann wrote:
Another possible problem:
atts.addAttribute(, , reportId, , 123);
The method declaration is:
addAttribute(String
Thanks, Joerg--it turns out using Fop command line (Fop -xml ... -xsl ...
-pdf ...) attributes and elements
copy over perfectly. It's just within my Java program that I can get only
elements. I'll need to look more into this issue.
Glen
J.Pietschmann wrote:
Both approaches work for me
I could use assistance here. Given an xml such as:
report reportId=123
animalcat/animal
/report
My embedded FOP transformation is handling elements but not attributes.
Here is the code as a Nabble attachment:
http://old.nabble.com/file/p26489602/attributetest.zip attributetest.zip --
if
Hello, I'm having difficulty getting xsl:value-of select=/ to work with
attributes--it must be something obvious but I can't figure out the problem.
(I'm using FOP 0.95-1.)
For this XML snippet:
batch myattval=
aaadog/aaa
bbbcat/bbb
...
and this XSL template:
xsl:template
Hello, I can't find the Maven Repository for FOP 0.95--the most up-to-date I
see[1] is for FOP 0.93. Does anyone know of a repository for the latest
release version? I can type up a JIRA item if one is needed for this.
Thanks,
Glen
[1] http://repo1.maven.org/maven2/fop/fop/
--
View this
/Maven Use or
similar.
Glen
Glen Mazza wrote:
Hello, I can't find the Maven Repository for FOP 0.95--the most up-to-date
I see[1] is for FOP 0.93. Does anyone know of a repository for the latest
release version? I can type up a JIRA item if one is needed for this.
Thanks,
Glen
[1] http
Hello All,
I created a Google Code open-source (Apache license) framework to help with
querying and production of multiple SQL-XML-XSL-FO-PDF reports in a
servlet environment. It uses FOP 0.93 internally. It is here[1] in case it
can help anyone, and [2] provides more information on the
Hello,
I recently figured out how to use FOP as part of a web service that returns
PDF documents. In case this might be of help to others who would like to do
something similar, I have blogged it here:
http://www.jroller.com/gmazza/date/20071102
Regards,
Glen
--
View this message in
FOP handles Roomaji very well. For the other writing scripts, possible
sources of help are:
http://www.javaworld.com/javaworld/jw-03-2005/jw-0328-xmlprinting.html
http://www.terra-intl.com/tetsuya/2005/11/forrest_japanese.html
http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=japaneseq=b
Glen
Perhaps this would be a good skeleton for what you want to do:
http://www.renderx.com/support/oracle.html
Of course, the Java API between FOP and RenderX are different and will
need changing, etc. But the basic principle should be the same.
HTH,
Glen
Luciano Belotto wrote:
I use Apache
strict validation (where available)
now generates a PDF without the error described below :-)))
Thanks and happy new year.
Best Regards,
Leeloo
*/Glen Mazza [EMAIL PROTECTED]/* schrieb:
[EMAIL PROTECTED] escribió:
Trying to convert an FO-File which was generated by FOP 0.92beta
[EMAIL PROTECTED] escribió:
Trying to convert an FO-File which was generated by FOP 0.92beta to an
PDF just stopped with following Error Message:
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: file:///test/test.fo:1:43655:
Error(1/43655): fo:table-row is
Oh, by the way, you want to ask these types of questions on
fop-users@xmlgraphics.apache.org, *many* more users there.
Glen
Glen Mazza wrote:
Jeremias provided a solution[1] to a similar question I had. Also, I
wonder if XForms might be a better option for you--there are some open
source
Jay Bryant wrote:
Hi, Dan,
That's either not DocBook or it's a customization of it.
You can achieve the same look by writing a transform that turns those
elements into standard Docbook and then styling the DocBook output
accordingly.
For now, remember that DocBook contains content. You'll
On 16.10.2006 14:26:51 Onur Senturk wrote:
hi, i'm trying to use fop with oc4j but i think the xml parsers are
conflicting. when i try to use xerces, the application doesn't start. When i
use the xml parser of the oc4j, i cannot make fop work.
what should i do? does anyone have an idea? thanks.
Richard King wrote:
Thanks for that. I appreciate it and the jar looks good.
Downloaded and updated my jar ... unfortunately now have a new problem!
Running the fop.bat or via java I get a FATAL. The message of concern I
believe is:
The attribute width of the element rect is required
Richard King wrote:
Heya,
What I'm doing is trying to implement a barcode via barcode4j.
Oh! This is a Jeremias question then. My knowledge of barcodes is
limited to finding them on products so I can use the self-serve checkout
at the grocery store.
I did not realize that the rect/ was
Andreas L Delmelle wrote:
On Oct 8, 2006, at 15:45, Andreas L Delmelle wrote:
snip /
It appears that either these bugs simply get ignored by Oracle (*),
or no-one takes the time to file them and supply the Oracle-devs
with the information they really need to address these problems.
It
This issue does not appear to be XSL-related, and I am not certain it is
even XSLT related. Perhaps the XML-DEV mailing list could be of
help--be sure to give more background information over which
XML-processing technology you are using. Also note your My problem
sentence below is missing
Lars Ivar Igesund wrote:
I need to create PDF from the information contained in some Java objects. The
standard way to do this according to the FOP docs, is to create XML from the
objects, then transform to XSL-FO using XSLT.
Yes. Learning XSLT (like Ant) is Time Very Well Spent.
But
I would recommend using XSLT to do the transformations that you need.
Unfortunately you will need to learn XSLT first before you can use it.
Check the Xalan website for more details. The Mulberry XSLT mailing
list (google) is best for specific questions you may have.
Glen
vijay wrote:
Hi
Susanta Dash wrote:
Hey guys, I can't wait for XSL-FO 1.1 and can't see any alternative. Can you
guys just guide me to accomplish my need; I'm trying to get the exact point
where to break the text, so that I can just move the rest of the text to the
next column. I'm thinking to use AWT renderer
count is an issue.
Thanks.
-Original Message-
From: Glen Mazza [mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 13, 2006 12:03 AM
To: fop-users@xmlgraphics.apache.org
mailto:fop-users@xmlgraphics.apache.org
Subject: Re: How to get
Don Adams wrote:
Hello,
Has anyone successfully packaged the docbook-xsl stylesheets
into a WAR and used them with JAXP?
I'm unsure what the relevance of the WAR file to your problem is. Upon
deployment, wouldn't the servlet container expand the WAR file into its
various folders and
Susanta Dash wrote:
Here is the problem I'm facing while rendering it in FOP.
I've two rows, first one has 3 columns and the next has 2 columns. The
text within these rows need to be flowed to the next column.
Why wouldn't having one column for each row and letting the text flow
normally
paul wrote:
Hello
I'm trying to format a table, and it would be useful to apply formats like
padding, background-color to entire rows or columns (which, according to my
book, should be possible). If I try to do so, nothing happens. I always have to
set these attributes in the individual cells
Just my $0.02, but I dislike usage of the deprecated XSL-FO. The
difference between XSL and XSLT are pretty well-understood today.
Glen
Jeremias Maerki wrote:
XSL-FO doesn't provide anything that would let you do that.
I would prefer avoiding the use of fox:destination, as the XSL WG did
not see a need for a separate FO for this when they placed bookmarks
into 1.1. Instead, I think it would be better to implement it the way
the commercial processors handle them, which is I believe is relying
either on the
Vincent, in considering this, you may wish to also keep in mind: what
do you see as the usage difference between side-floats and the
xsl:region-start and xsl:region-end regions? I mention this, just to
make sure that use cases actually intended for side regions do not move
into side-floats,
We use XSL/XSLT for reports and for Docbook.
Docbook: Tech Writer creates the XML documents that will be fed through
the Docbook stylesheets. Uses Eclipse WTP for this. The developer
creates an Ant script that automates all of the tech writer's doc
generation and publishing-to-web-server
pat wrote:
Hi,
Well, the template is for kind of bill for Czech postal service and they
require to split payment to integer part and the fraction (don't ask me why).
Yes, the Czech postal service is a constant source of problems on this
ML. ;-)
So, the creation of two markers is
pat wrote:
Hi all,
I have a problem and I'm not able to solve it :-( I'm using marker to generate
subtotat (it works) and for retrievng the subtotal I'm using retrieve-marker
(that works too), but I need to split subtotal to part before decimal point
and after decimal point ant this is the
If it's not compliant, then it is not an FO file, and expected output
would have to be undefined as a result. I'm unsure why you would want
to code your stylesheets in an invalid way. If you have no data, better
to code your XSLT not to generate a fo:table to begin with.
Glen
Navanee
[Happy Independence Day fellow Americans!]
Manuel Mall wrote:
Looking at the stylesheet you seem to simply generate a table. IMO if
this is all you want to do FOP may not be the best tool for the task at
hand. For example storing your test results in a database and using a
report writer may
[EMAIL PROTECTED] wrote:
I am using xsltproc and fop 0.92b to generate pdf output from docbook
sources.
I am trying to customize my section titles by changing the
section.title.properties attribute-set in my customization layer.
The error message I receive from FOP is:
Matthew East wrote:
Hi all, and sorry to bother yet again.
Fop is now working nicely on my home computer. Then I tried to run it on another
pc, with basically the same setup on the same files, with the same version of
java installed, and I get this error:
http://fop.pastebin.com/715978
Any
Matthew East wrote:
Glen Mazza gmazza at apache.org writes:
Main problem: If any of the fo:flows have a flow-name that map to
something other than xsl-region-body, or if any of the
fo:static-contents have a flow-name that map to xsl-region-body, then
this error message will occur
Geldersma, Matt (AGRN) wrote:
But when I try to use it I get this error
org.apache.fop.fo.ValidationExceltion: Error(unknown location): For
fo:root, fo:layout-master-set must be declared before fo:bookmark tree.
In this case, either you declared an fo:bookmark-tree before the
Vijay Yellapragada wrote:
The current problem I am trying to solve is the following :-
I am trying to generate subsections numbers in my final PDF document. So I have
chosen a scheme where each h? tag in html maps to a corresponding section
level. For eg :
h2 - 1
h3 - 1.1
h4 - 1.1.1 etc
David wrote:
Dear members,
I am getting problmes when getting generating the PDF file from using
FOP. I am using DocBook, vía Ant:
More detective work seems needed. Have you tried to create the
absolutely most minimal Docbook document possible, to see if the error
still occurs? This
I wonder if what he actually wants to use are footnotes. Won't those
grow in the manner that he desires?
Glen
Jeremias Maerki wrote:
Chapter 6.4.15 (region-after) in XSL 1.0 says:
The block-progression-dimension of the region-viewport-area is
determined by the extent trait on the
Hello FOP Team,
This is from the Docbook-Apps list. I think there is a stray debugging
comment in the 0.91 version that can probably be removed--it seems
unrelated to anything wrong that the user might be doing, but rather
just a debugging note added in during algorithm development. See
The SAX processing model (instead of constructing DOM trees to
subsequently feed FOP) would probably be much faster for you. No JSP
needed for this. I would take a look at Jeremias' ExampleObj2PDF[1] and
corresponding model[2] to get an idea of the process. I've been using
this method at
Andreas L Delmelle wrote:
In the latter case, however:
fo:instream-foreign-object
svg:svg ...
...
/svg:svg
/fo:instream-foreign-object
Note that the i-f-o now contains two text nodes (= #PCDATA):
'#x0A;#x20;#x20;' and '#xA0;'
I think they call that insignificant white space, and
[EMAIL PROTECTED] wrote:
10:01:48,302 WARN [FONode] Warning(Unknown location): fo:table-column,
In the separate border model (border-collapse=separate), borders
cannot be specified on a fo:table-column, but a non-zero value for
border was found. The border will be ignored.
I don't like
Jeremias Maerki wrote:
Actually, this message refers to the fo:region-before element in the
single-page-master. The specification dictates that border and/or padding
must not be specified on a region-before which seems to be the case in
your example.
Well, technically you can specify any
Marcel Hoffmann wrote:
Hi,
I have a problme with the id already exists issue that has - to my
knowledge - not been discussed in this group.
The fo file I use carries a fo:wrapper node in the header section. The
wrapper node appears only once. Nevertheless FOP is not able to process
the fo file
Hello,
I'm using FOP 0.20.5 and I would like to adjust the vertical spacing
between rows in the fo:table-body/ of an fo:table/, but am having
trouble doing so. (The rows contain text only and currently are too
close together.)
What is the preferred property (padding/space -before, -after?)
Clay Leeds wrote:
I always used either the padding-bottom attribute on fo:table-row, or
margin-bottom on fo:block. I occasionally had problems w fo:table-row
padding attributes, in which case I would apply padding-bottom to the
fo:table-cell element.
Thanks, that did it!
Paul Tremblay wrote:
I am trying to run fop from a CD (or other removable device). I am at
a different place every day and at a different computer. At some of
the places java is installed, so I can run fop no problem.
I'm assuming you're running fop by calling fop.bat.
However, at other
Clay Leeds wrote:
On Jan 20, 2006, at 6:28 AM, Jeroen van der Vegt wrote:
I'm not sure I correctly understand the problem anymore, but this
might be relevant:
Can't you let the JPEG servlet indicate that its output should not be
cached? I use this code to disable various cache mechanism:
Jeremias Maerki wrote:
On 18.01.2006 09:44:57 Chris Bowditch wrote:
vijay visu wrote:
snip/
These servlets should be called for each PDFs
generated since each chart will be unique.
My problem is that the servlets which builds the
dynamic charts are called
for the first time only. On the
Clay Leeds escribió:
On Jan 19, 2006, at 10:30 AM, Glen Mazza wrote:
Jeremias Maerki wrote:
Or you need to simply make sure that the URLs are unique. You can use a
dummy parameter in the URL to fake uniqueness:
http://localhost/MyChartServlet?dummy=1234
Hmmm...my guess is that for any
Jeremias Maerki wrote:
If I'm thinking about it, it is probably a bad idea to use the XML file
as base URL source when a stylesheet is used. Normally, you'd place the
resources for a stylesheet relative to the stylesheet, not the source
XML file. fop-devs, what do you think? It would be easy to
David Gagnon wrote:
Hi all,
I have a web application with a background thread that check for a
condition and then this condition is meet needs to generates a report
with fop and send it directly to a printer.
snip/
Any help, or code example will be appreciated ..
Don't use XSLTInputHandler. Use JAXP[1] instead.
Glen
[1] http://xmlgraphics.apache.org/fop/0.20.5/embedding.html#examples
[EMAIL PROTECTED] wrote:
Hello,
I struggling to create a webapps that creates pdf's for xml documents. The
problem is: I can't pipe the output of my SAX transformation
No, FOP doesn't need Apache HTTP Server to run. FOP is a Java program,
while the HTTP Server is in C (or C++) anyway.
FOP needs just a Java Runtime Environment and the JARs kept in the FOP
lib directory that comes with its download.
Glen
Charles Murphy wrote:
I have successfully installed
Clifton Craig wrote:
I'm writing a report transform usinf XSLT for XSL-FO and I have some basic
questions. What's the best way to code for multiple page sequences. For
example I have some static content that I like to keep in the header and
footers and I guess it doesn't matter but I'd like
David Frankson wrote:
However, if you were to
take the latest source and put it into a 20.5.1, we'd probably
enthusiastically take it, and it might solve a lot of the
performance/memory issues that are posted to the list.
No doubt. But 0.90alpha1 will be getting better. Very few if any
Simon Pepping wrote:
Another issue I have with FOP and Docbook is that FOP out of the box
does not use catalogs.
ignorance/ I'm unsure what you mean by catalogs.
I think we should do something about this. It
is unrealistic to expect Docbook users to write their own startup Java
file. They
There's a nice new critter in XSL 1.1, fo:retrieve-table-marker[1][2],
that appears to be the legal way of doing what is wanted here. But
that will need to wait for implementation in the new version.
Glen
[1] http://www.w3.org/TR/xsl11/#fo_retrieve-table-marker
[2]
http://www-128.ibm.com/developerworks/library/x-xslfo2app/#b?
Read the Notice that the select attribute... blurb at the end of the
b discussion here.
Glen
Dirk Bromberg wrote:
Hi,
i've a short xml-xsl-fo question.
my xml is:
textHere is some textB with bold B/Iand italicI/BI and
What happens when you open the PDF file with Adobe Acrobat directly, and
not using the browser? Are you getting the same result opening the PDF
with both IE and Firefox?
Is this just an annoying message, or is a corrupted/unusable PDF returned?
It very well could be, but I was unaware that
Without servlets and JSPs, what will your provider allow you use to
execute programs on the server--ASP, PHP, or cgi? A pure HTTP server
will not be able to activate programs, regardless of what you can
compile FOP into. Is the provider using IIS or Apache as the web server?
My thinking,
Sash Wiener wrote:
Hi,
Running FOP Successfully for years on Windows servers using Shell
Command to execute from client side ie.
shell(fopString)
However according to hosting company the new security updates in Windows
Server 2005 are causing this error message.
To better isolate
Rachel C. Rusinski wrote:
I need FOP to render a dummy PDF upon save of a question group and return
to me the exact height in inches of that question group.
FOP doesn't do that. It returns documents as its output. You may wish
to send a suggestion to the W3C's XSL Editors list to have
This article may be of help:
http://www-128.ibm.com/developerworks/library/x-xslfo2app/
Glen
Jimmy Dixon wrote:
no - you would need to have your HTML in XHTML format so you can convert
it to XSL-FO using XSLT, FOP can then be used to convert XSL-FO to PDF
or (I think) Postscript.
Leon Pu
to HTML. Is the
result HTML ok for FOP? Or there is other shortcut to generate
PostScript or PDF from XML directly?
Thanks for your reply.
Best regards,
Leon
--- Glen Mazza [EMAIL PROTECTED] wrote:
This article may be of help:
http://www-128.ibm.com/developerworks/library/x-xslfo2app/
Glen
Ross Nicholls wrote:
Hi there,
Maybe this is an easy one, in which case I apologise!
I have an alternating page sequence that simply switches the left and
right hand margins (for binding). However, I also need the header (a 2
cell table placed in xsl-region-before) to be mirrored on
-alternatives
/fo:page-sequence-master
*Glen Mazza [EMAIL PROTECTED]*
10/28/2005 02:35 PM ASTPlease respond [EMAIL PROTECTED]
To fop-users@xmlgraphics.apache.org
cc
bcc
Subject Re: odd-or-even AND page-position in
fo:conditional-page-master-reference
I think all you need is to set
I wonder if setting the margins on the fo:region-body (instead of the
fo:external-graphic) would also have solved this. The example you gave
had an empty fo:region-body/ without dimensions, but you may have
been just abbreviating the sample by removing those dimensions.
Glen
Tony Morris
Jeremias Maerki wrote:
XSL 1.0, 6.4.19, fo:static-content says:
http://www.w3.org/TR/xsl/slice6.html#fo_static-content
Contents:
(%block;)+
So you must at least have one block as a child for fo:static-content (It
can be empty). The redesigned FOP is much more strict about the
interpretation
Andreas L Delmelle wrote:
(Jay's suggestion just rolled in --I'm not 100% sure, but I think FOP
will complain if it encounters attributes in the fo: namespace that are
not properties as defined in the Rec. FOP 0.20.5 may turn out to be
forgiving... Just to be on the safe side, I'd use a
Instead of full, make that the simplest... ;-)
Glen
Jeremias Maerki wrote:
Ok, so now that we know that you're really on FOP Trunk and not FOP
0.20.5 (it's always good to tell what version you're working on!),
please send a full FO sample file that allows us to reproduce your
problem with
Jeremias Maerki wrote:
Was there a nested exception further down the stack trace? If not, this
is not enough information for us help you. Please run this document
through FOP from the command-line. This might help you track down the
problem. Maybe it's not even caused by FOP.
If your FO (or
IIRC these properties don't work in 0.20.5 at the table-row level. Try
placing the properties on each fo:table-cell instead. If needing to
duplicate each of these properties on every fo:table-cell becomes overly
irritating, using XSLT templates to create the fo:table-cells or XSLT
attribute
Prakash R wrote:
Is there a way to hide the header/footer for a
particular page within a page-sequence? I just want to
hide the header/footer for a particular page not the
last or any alternate page. I know there are ways to
do that. But is there a way to hide header/footer for
a random page in
Daniel Brown wrote:
How can I create a watermark? I've read the documentation/FAQ about
watermarks. I need an Image which will fit being the center of the text
on the page in the body and continue to remain centered on all the
following pages in that sequence.
I'm not sure of FOP's
Andreas L Delmelle wrote:
Sorry, but I disagree. The content-model of fo:page-sequence is:
(title?,static-content*,flow)
Or maybe you're referring to the XSL-FO 1.1 Rec, which FOP currently
does not implement.
There indeed, more than one flow may be put inside a page-sequence, and
Matthias Treitler wrote:
Ok, i want to make a head, a body and a foot part of my site! So i have to
implement a xsl-region-before, xsl-region-body and xsl-region-after part on
my site! You understand?!?
But i can only implement a fo:flow flow-name=xsl-region-before or a
fo:flow
FOP community,
Jeff Johnston has developed an open source (Apache License)
eXtremeTable [1] that combines HTML, PDF (using FOP), and Excel (using
Jakarta POI) output for the same data. I have not used it yet, but the
U.S. Presidents table example [2] on the companion site looks quite
good,
I would think, in order to give a progress indicator, FOP while running
would need to know where the end of the input is (how else could FOP
declare itself to be 25% done, 50% done, etc.). But FOP does not do
such preprocessing, it processes the data as it gets it (well, starting
at the end
Luis Cañas wrote:
Hi all,
I'm trying to compile[1] a valid [2] Docbook document (it works fine
with docbook2pdf). But after a while appears this error eternally:
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
Thanks for the information.
Glen
Peter B. West wrote:
Glen Mazza wrote:
(BTW, does anyone know if FOP runs--or runs well--on Gentoo[5]? That
distribution is becoming increasingly of interest to me.)
Glen,
An ebuild of fop 0.20.5 is available on gentoo.
Peter
Looking at the source file in question[1, line 1520], it is complaining
that it can't find the (graphics-related) java.awt.Rectangle class. [2]
is the Sun error description (indeed, the exception means it can't find
a class), the bottom of [3] indicates that the problem may be with your
X
I don't know about the 0.20.5 code base, but the
upcoming 1.0 code base raises the duplicate-id error
message only while parsing the input stream (before
any breaking up the formatting object into blocks
occurs) so this error should not occur in future
releases. In 1.0, ID's can (and are)
87 matches
Mail list logo