Matt,
Why don't you do it all in one pass? I have a servlet, that calls
some bean to get XML document in a DOM format (actually JDOM), then
registers fop driver as receiver of SAX events and runs XSLT on the
JDOM tree.
// 1. Generate XML tree
Document xmlSummary =
Yes. See attached JSP. Without a parameter it reads
static XML file and displays it in HTML format, with
'fo' parameter it reads the .fo file and displays PDF,
and also has a link to display static XML as PDF. It's
easy to modify this to read external XML file and output
PDF. It used to work
Two problem with this approach. First, you are using a lot of memory to
store
intermediate XML result in a string buffer. Second, you have to parse that
XML
again (FOP will do it for you, but it takes time). A better solution, as I
already
said before, is to register FOP as a receiver of SAX
Could somebody please point out what is the benefit of
using fo:instream-foreign-object...svg:image ...
instead of fo:external-graphic ... ?
Thanks,
YS
-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 4:02 AM
To: Fop-liste
to embed the graphs (as SVG images)
inline rather then creating .svg files and then deleting them after
generating the PDFs.
Jim
-Original Message-
From: Shkuro, Yuri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 8:27 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems
Why do you need entities in FOP input? If you use different
stylesheets for different chapters, write a Makefile to
XSLT them into fo files, then merge and feed into FOP.
If you use the same XSL for all chapters, then you can use
xsl:include to pull all chapters into a single XML file
and
JDK 1.1 support was voted to be discontinued about a month ago.
You may find relevant discussion in the list archive.
Please invalidate your bug report.
YS
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 3:46 PM
To: [EMAIL
the book pdf.
as per the above commandline i'm inputting .xml and
.xsl(eventhough using the xsl-fo tags).
how i make pdf of a book ,if there are two chapter xml
files...chapter1.xml chapter2.xml using fop with the
same .xsl file for styling.
please take cocern.
regards
sunitha
--- Shkuro, Yuri
Chris,
I am using fo:table-caption successfully. Not sure what kind of feedback
you are looking for.
BTW, I don't know what you mean by fo:table-caption can host a table - it
should contain row
definitions, just as fo:table-body, with the same number of columns (the
columns widths will be
Sorry, what I said applies to f:table-header, which I am using.
Don't know about table-caption.
-Original Message-
From: Shkuro, Yuri
Sent: Monday, October 29, 2001 9:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Table Column-Headers
Chris,
I am using fo:table-caption successfully
I had this problem when I had old IBM's parser.jar hanging
around in the classpath. Even putting xerces.jar in front
didn't help, I had to explicitely set up the parser factory:
System.setProperty( javax.xml.parsers.SAXParserFactory,
org.apache.xerces.jaxp.SAXParserFactoryImpl );
However,
If your string XML is going to be run through XSLT like Xalan,
it WILL BE parsed anyway, and most likely it will be parsed using
a SAX parser (the default Xalan behavior). Therefore there is no
overhead whatsoever compared to what you would do in any other
solution. In fact, if you look at the
?
I could not get driver.setLogger(logger); to compile. The versions I have
of FOP (0.19 and 0.20.1) do not have a
org.apache.fop.apps.Driver.setLogger(org.apache.log.Logger) method.
I am using Xalan/Xerces, does this matter?
Jim
-Original Message-
From: Shkuro, Yuri [mailto:[EMAIL
I can't specify the source of this advice exactly, because I forgot
it (it was somewhere on Microsoft's website), but what the article
said was that when IE sends these multple requests, they are actually
different in something like UserAgent http header (a better header
they couldn't find!).
I think what Chris was asking is what needs to be done to make sure
the table that doesn't fit on a page is started from the next page.
I have a similar need. So far I just used table-header to at least
make sure that even if the table crosses the page, at least the header
will be repeated, but
Corinna,
Indeed, keep-with-next does work when set for each row. But you scared me
with
the endless loop comment, so for now I would keep my stylesheets the way I
had them.
Somewhat related question: I am using space-before for those short tables to
leave
some white space between them, but
PROTECTED]'
Subject: RE: Table Headings
Have one of the cells wrap text so it grows taller than the other cells.
Then you'll see the problem.
Scott
-Original Message-
From: Shkuro, Yuri [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 15, 2001 2:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE
I used JSP to stream out PDF files successfully.
What may be happenning in your case is that the
whitespace between %!% %% is written to the
output stream before you start writing the PDF content.
Try calling clearBuffer() on the output stream first.
YS
-Original Message-
From:
18 matches
Mail list logo