Lists Home |
Date Index |
- From: Geeta Gudavalli <ggudavalli@McLeodUSA.com>
- To: email@example.com
- Date: Fri, 08 Dec 2000 18:07:56 -0600
I am successful in creating pdf document from xml and xsl file using
servlet running Apache jserv. My problem is sending the pdf file as output i.e
to open the pdf file in my servlet. I am getting socketexception but I am not
opening any sockets. Your help is greatly appreciated.
---------------------- Forwarded by Geeta Gudavalli/MCLEOD on 12/08/2000 06:09
Gael G De Barbeyrac <firstname.lastname@example.org> on 12/01/2000 11:29:54 AM
To: Geeta Gudavalli/MCLEOD@MCLEOD
Subject: Re: XML TO PDF
I am using a servlet running under Apache/JServ 1.1.1 (a bit oldie, but it is
ok) with Xalan / FOP to the which I pass parameters to select the xsl file that
contains the FOP transformation rules to apply the xml file to transform (could
be built from a database extract). Then I use the PDF rendering mechanism of FOP
and output the PDF byte code to the HTTP response with the mime type
application/pdf. And that works just fine.
I am sure you could apply this strategy into any servlet environment without
having to rely on apache / cocoon.
email@example.com on 12/01/2000 05:46:22 PM
cc: (bcc: Gael G De Barbeyrac)
Subject: XML TO PDF
I have two questions regarding transforming XML to PDF.
1. I get data from db2 as xml format. This file has different templates in it.
When I transform this to pdf, I am getting error at FOP rendering because the
xsl file does not just choose the template I specify. It picks up all the data
from the file. This causes fop to error out. The e sample xml file is given
below. Can someone help me figure out how to select only one template at a time
with out parsing the xml file to break it into different files.
(See attached file: out.xml)(See attached file: obf_dl_form.xsl) In the xls
file, I need to select only "DL" but it brings the values of fields from DSR and
2. How can I run XALAN and FOP interactively from a web page rather than a
batch process? I do not want to use cocoon? Is there another way? I am
thinking of using Class and method.invoke to invoke the commands.
Your help is greatly appreciated.