Read up on SAX parsers, in the JAXP documentation, which is part of
the JEE documentation.
In this case the XML file is only virtual. It is constructed by your
code in the form of SAX parser events. This is a fairly basic manner
to do things. I do not know the other suggestions such as Velocity
te
Hi Jeremias,
Jeremias Maerki wrote:
Venkat,
most probably, Barcode4J is not in the classpath. See also:
http://barcode4j.sourceforge.net/2.0/fop-ext.html#Setting+up+the+barcode+extension+with+Apache+FOP+0.93+or+later
Barcode4J is not (yet) bundled with FOP.
Yes, I have missed the jar in the
Venkat,
most probably, Barcode4J is not in the classpath. See also:
http://barcode4j.sourceforge.net/2.0/fop-ext.html#Setting+up+the+barcode+extension+with+Apache+FOP+0.93+or+later
Barcode4J is not (yet) bundled with FOP.
On 11.02.2010 16:43:50 Venkat Reddy wrote:
> Hi Pete,
>
> Thanks for your
Hi Pete,
Thanks for your response. I have tried with FOP 0.95 version, the same
problem is coming.
I have generated the barcodes previously using trunk, don't know why it
is failing now.
Thanks,
Venkat.
Pete Allison wrote:
I'm using 0.94. It seems to generate correcty for me. I've attached
I'm using 0.94. It seems to generate correcty for me. I've attached the PDF.
From: Venkat Reddy [mailto:vanukuri.ven...@googlemail.com]
Sent: Thursday, February 11, 2010 7:59 AM
To: fop-users@xmlgraphics.apache.org
Subject: barcode test failing
Hi,
I am trying to generate a PDF docu
thx. yes, but i also need to know the length of each string, the length in mm
of each character, the length of column to know when they break in two or
more lines :) i think is is possible in automatic mode :)
Mario Madunic wrote:
>
> Sorry for it to make more sense here is the xpath I would t
Hi,
I am trying to generate a PDF document with barcode in it. I am running
this example on FOP trunk.
When I run the sample barcode test xsl:fo file from the command prompt...
*fop -fo barcodetest.fo -pdf barcodetest.pdf*
I have got the following messages on the console...
11-Feb-2010 13:47
I don't know if this will help but if you are parsing with XSLT first you could
use Xalan or Saxon to grab the data from the db. Xalan has an extension that
you can use easy enough but Saxon's extension can only be used from the command
line. Now to take it one step further you could write your
I will finally proceed differently… I'll take a position information from the
area tree and use it to add a calculated empty block in my xsl to generate
directly my pdf !
rOnnie974 wrote:
>
> Hello, it's me again,
>
> I am back on this work and after several tests, I figured out that my area
Well, theoretically you can drop the ResultSet into the Velocity
context and iterate over it in the template, which is certainly the
simplest way - personally, I prefer to create a List of some Bean
class and iterate over that instead. But then, I'm old, cynical, and
paranoid!
M
On 11 February 20
Thanks Simon, as per your comment i need to parse the Temp.xml (which
contains the placeholder) using SAX and read the data from the resultset.
But how can I merge or append the data reed from DB to the Temp.xml.
Once i merge the data in place of the placeholder, the temp.xml should look
like:-
You can use SAX. Your app implements SAXParser and emits SAX events:
contentHandler.startElement('header');
contentHandler.text('Sample Header');
etc. Similarly for your data from the DB. For example, read the
ResultSet, and emit the appropriate SAX events. The total picture is
then:
data (SAXPa
Thanks Martin, how to fill the data from the database for the placeholders
in temp.xml? Is it the data or the ResultSet needs to be converted to a XML
format. My question is ,similar to Jasper reports is there any API (eitheir
DOM or FOP) which takes the ArrayList (contains the data from DB) usi
This isn't, strictly speaking, a FOP issue, but since I have to do
something similar, I'll share my experience with you:
You have (at least) two options:
You can read your empty temp.xml file into a DOM, then manipulate the
DOM to fill in data from the database. I don't like this option. What
I do
14 matches
Mail list logo