fo:external graphics and memory usage

2003-05-15 Thread Mirko Sertic
Hello!

I have a little question about fo:external-graphic and memory usage.
I think this question was answered before, but i did'nt find the right
thread :-(.

Are images that were used in fo:external-graphic cached, and if , where ?
And how do i reset this cache ? I'm using 0.20.5rc2.

I ask this question because my jvm ( sun, win2k ) heap size grows and grows
till i's sudden out-of-memory-death. Because we are using CORBA, i thought
about orb object references that where not corretly cleaned, but analysis
with jprofiler says that there are none, except that the heap seems not to
be cleaned up.

What am i doing wrong ?

Thanks a lot.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: DTMException ?

2003-05-07 Thread Mirko Sertic
Thanks a lot.

I put the current xalan and xerces releases in my lib/endorsed dir and now
it works
very well.

good tip!

-Ursprungliche Nachricht-
Von: J.Pietschmann [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Mai 2003 23:48
An: [EMAIL PROTECTED]
Betreff: Re: DTMException ?


Jeremias Maerki wrote:
 You've got to go to the Xalan guys with this. This has nothing to do
 with FOP.

It's a characteristic problem with the Xalan distributed with one of
the 1.4 JDKs.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DTMException ?

2003-05-06 Thread Mirko Sertic
Hello!

I'm getting the following exception when transforming a really large
document.
What does the exception mean ( no more DTM-ID's available ) ? . How can i
prevent
this ?

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
javax.xml.transform.TransformerException: org.apache.xml.dtm.DTMException:
Keine
 weiteren DTM-IDs verf³gbar
at
org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown So
urce)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown
Source
)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown
Source
)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown
Source
)
at de.dtmgmbh.system.fop.CommandLine.execute(Unknown Source)
at de.dtmgmbh.system.fop.CommandLine.main(Unknown Source)
Caused by: org.apache.xml.dtm.DTMException: Keine weiteren DTM-IDs verf³gbar
at
org.apache.xml.dtm.ref.DTMManagerDefault.getFirstFreeDTMID(Unknown So
urce)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(Unknown Source)
at org.apache.xpath.XPathContext.getDTM(Unknown Source)
at
org.apache.xalan.transformer.TransformerImpl.transformToRTF(Unknown S
ource)
at org.apache.xalan.templates.ElemWithParam.getValue(Unknown Source)
at org.apache.xalan.templates.ElemCallTemplate.execute(Unknown
Source)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Un
...

Thanks a lot for your help.

Cheers

Mirko Sertic


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: accessing attributes in xml

2003-04-24 Thread Mirko Sertic



I'd 
guess

xsl:value of select="[EMAIL PROTECTED] = 
'SALES']"/

Hope 
this helps

Cheers

Mirko

  -Ursprüngliche Nachricht-Von: Torsten Erler 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 
  2003 15:03An: Fop-User (E-mail)Betreff: accessing 
  attributes in xml
  
  Hi 
  all,
  
  I've an xml 
  like:
  
  ...
  defaultContactPerson 
  type="PROOF"/defaultContactPerson 
  type="BILL"/defaultContactPerson type="SALES"Hans Friedrich 
  Mueller/defaultContactPersondefaultContactPerson 
  type="MAIL"/defaultContactPerson 
  type="KEY"/
  
  
  Now I've to check 
  inside the xsl this:
  
  xsl:if 
  test="??? //[EMAIL PROTECTED] != '' ???"
  
  !--do 
  something here if the sales contact isn't empty--
  xsl:value-of 
  select="??? //[EMAIL PROTECTED] 
  ???"/
  
  /xsl
  
  Can anyone help me 
  how to check the valuefor the tagwhere the attribute is 'SALES' 
  and how to access this value.
  
  ThanX in 
  Advance
  
  cu Torsten
  


AW: accessing attributes in xml

2003-04-24 Thread Mirko Sertic



Sorry, 
i mean


xsl:value-of 
select="[EMAIL PROTECTED] = 'SALES']"/

Cheers

Mirko

  -Ursprüngliche Nachricht-Von: Mirko Sertic 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 
  2003 15:06An: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Betreff: AW: accessing attributes in 
  xml
  I'd 
  guess
  
  xsl:value of select="[EMAIL PROTECTED] = 
  'SALES']"/
  
  Hope 
  this helps
  
  Cheers
  
  Mirko
  
-Ursprüngliche Nachricht-Von: Torsten Erler 
[mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. 
April 2003 15:03An: Fop-User (E-mail)Betreff: 
accessing attributes in xml

Hi 
all,

I've an xml 
like:

...
defaultContactPerson 
type="PROOF"/defaultContactPerson 
type="BILL"/defaultContactPerson type="SALES"Hans Friedrich 
Mueller/defaultContactPersondefaultContactPerson 
type="MAIL"/defaultContactPerson 
type="KEY"/


Now I've to 
check inside the xsl this:

xsl:if 
test="??? //[EMAIL PROTECTED] != '' ???"

!--do 
something here if the sales contact isn't empty--
xsl:value-of 
select="??? //[EMAIL PROTECTED] 
???"/

/xsl

Can anyone help 
me how to check the valuefor the tagwhere the attribute is 
'SALES' and how to access this value.

ThanX in 
Advance

cu Torsten



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Mirko Sertic
I think you have avalon-framework-4.0 in your classpath. This file has
changed.
It is now called avalon-framework-cvs... and was part of my source
distribution.
Serach for such a file and change the classpath. This should fix your
problem.

Cheers

Mirko Sertic

-Ursprüngliche Nachricht-
Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 19. März 2003 13:20
An: [EMAIL PROTECTED]
Betreff: Upgrade 0.20.3 to 0.20.5rc


Hello everybody,

as I get a / by zero error under FOP 0.20.3 I want to upgrade to 0.20.5rc.
Unfortunately now I get a different error:

C:\fop\fop-0.20.5rcjava -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\ava
lon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop -xml
C:\Inetpub\honeywell\quotation\xml\200443.xml -d -xsl
C:\Inetpub\honeywell\quotation\xml2pdf.xsl
C:\Inetpub\honeywell\quotation\pdf\200443.pdf
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger
at org.apache.fop.apps.Fop.main(Fop.java:16)

Has someone experienced something similar?
By the way ... the / by zero error was already posted in January, but I
didn't find any solution for it. Has anyone some hints for me? ;-)

Thanks
Harald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: [ANNOUNCEMENT] OKI dot-matrix renderer available for download

2003-03-18 Thread Mirko Sertic
Thanks!

Mirko

-Ursprungliche Nachricht-
Von: Victor Mote [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 17. Marz 2003 18:15
An: [EMAIL PROTECTED]
Betreff: RE: [ANNOUNCEMENT] OKI dot-matrix renderer available for
download


I have just added an entry to the Related/Useful Products section of the
resources page for the Mogwai project:
http://xml.apache.org/fop/resources.html

The change should appear the next time the web site is updated.

Victor Mote

 -Original Message-
 From: Mirko Sertic [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 17, 2003 4:41 AM
 To: [EMAIL PROTECTED]
 Subject: AW: [ANNOUNCEMENT] OKI dot-matrix renderer available for
 download


 Hi!

 Yes, a third - party page with links would be cool !
 By the way, i forgot to make a link to the fop page on our site.
 This will be done soon.

 Cheers

 Mirko

 -Ursprungliche Nachricht-
 Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 17. Marz 2003 11:59
 An: [EMAIL PROTECTED]
 Betreff: Re: [ANNOUNCEMENT] OKI dot-matrix renderer available for
 download


 Mirko Sertic wrote:

  Finally, it has been done : our renderer to generate output for oki dot
  matrix printers is gone open source as part of the mogwai project on
  sourceforge.net. The current release can be downloaded at
  http://mogwai.sourceforge.net .
 Good news, Mirko!
 I believe it's worth to create another page on the FOP site about third
 party
 FOP plugins/renderers etc.

 --
 Oleg Tkachenko
 Multiconn Technologies, Israel


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANNOUNCEMENT] OKI dot-matrix renderer available for download

2003-03-17 Thread Mirko Sertic
Hello fop users !

Finally, it has been done : our renderer to generate output for oki dot
matrix printers is gone open source as part of the mogwai project on
sourceforge.net. The current release can be downloaded at
http://mogwai.sourceforge.net .

This renderer generates escape sequences which can be directly send to the
matrix printer. Thus, the data is not printed pixel-per-pixel like printing
with acrobat. The printing process is really speeded up.

The release 0.1 has the following limitations :

1. No graphics and no svg is supported.
2. There are only two font sizes ( normal and double-height, double-width )
3. Only horizontal lines are supported. Vertical lines are cut away.

This renderer has been used in production environment, and it fits our needs
very well. The few limitations are no real problem, because the printing is
done on pre-printed business paper, so there is no need for lines and the
artwork.

Making this renderer available is our way to say thank you to the
community.
All the developers of the fop team have done a real great work. Thanks a
lot.

I hope that this renderer is also usefull for other people. If there are any
problems, don't hesitate to contact me.

Happy coding!

Mirko Sertic


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: [ANNOUNCEMENT] OKI dot-matrix renderer available for download

2003-03-17 Thread Mirko Sertic
Hi!

Yes, a third - party page with links would be cool !
By the way, i forgot to make a link to the fop page on our site.
This will be done soon.

Cheers

Mirko

-Ursprungliche Nachricht-
Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 17. Marz 2003 11:59
An: [EMAIL PROTECTED]
Betreff: Re: [ANNOUNCEMENT] OKI dot-matrix renderer available for
download


Mirko Sertic wrote:

 Finally, it has been done : our renderer to generate output for oki dot
 matrix printers is gone open source as part of the mogwai project on
 sourceforge.net. The current release can be downloaded at
 http://mogwai.sourceforge.net .
Good news, Mirko!
I believe it's worth to create another page on the FOP site about third
party
FOP plugins/renderers etc.

--
Oleg Tkachenko
Multiconn Technologies, Israel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Detect page break in fo:flow

2003-02-24 Thread Mirko Sertic
Hello!

Yes, i need a partial sum. How would this be done using markers ?
Is there an example available ?

Thanks a lot

Mirko

-Ursprungliche Nachricht-
Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 10:55
An: [EMAIL PROTECTED]
Betreff: Re: Detect page break in fo:flow


Mirko Sertic wrote:

 i need to detect a page break when i generate the fo:flow area of my
 document.
 How can this be done?
No way unless you force page break yourself.

 The background is that i need to generate a counting sum on the top of my
 page.
Are you talking about partial sum? It's quite complicated, but feasible
using
markers.
--
Oleg Tkachenko
Multiconn Technologies, Israel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PDF Printing

2003-01-20 Thread Mirko Sertic
Hello Folks!

I'm trying to print a generated pdf. I knew i could use the PrintRenderer
from the PrintStarter class.
The only problem is that my pdf is not fopped in real - time. It was
generated some time ago and was
stored in out application pdf database for later use. So the problem is how
can i print that pdf?

Cheers

Mirko Sertic



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: PDF Printing

2003-01-20 Thread Mirko Sertic
Hello!

It should work on my linux server.



-Ursprüngliche Nachricht-
Von: Müller, Markus [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 20. Januar 2003 10:45
An: [EMAIL PROTECTED]
Betreff: AW: PDF  Printing


Why not using AcrobatReader with the commandline option for printing?

Markus

# -Ursprüngliche Nachricht-
# Von: Mirko Sertic [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 20. Januar 2003 10:43
# An: Fop-User
# Betreff: PDF  Printing
#
# Hello Folks!
#
# I'm trying to print a generated pdf. I knew i could use the
# PrintRenderer
# from the PrintStarter class.
# The only problem is that my pdf is not fopped in real - time. It was
# generated some time ago and was
# stored in out application pdf database for later use. So the
# problem is how
# can i print that pdf?
#
# Cheers
#
# Mirko Sertic
#
#
#
# -
# To unsubscribe, e-mail: [EMAIL PROTECTED]
# For additional commands, e-mail: [EMAIL PROTECTED]
#

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: PDF Printing

2003-01-20 Thread Mirko Sertic
Ok, ok, youre right.

But one of our goals is not to use the acrobat. We want
to print directly from our application. Isn't there any
open source java pdf printing api available

-Ursprüngliche Nachricht-
Von: Müller, Markus [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 20. Januar 2003 11:22
An: [EMAIL PROTECTED]
Betreff: AW: AW: PDF  Printing


On my RedHat AcrobatReader runs pretty good!

# -Ursprüngliche Nachricht-
# Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 20. Januar 2003 11:22
# An: [EMAIL PROTECTED]
# Betreff: Re: AW: PDF  Printing
#
# Mirko Sertic wrote:
#
#  It should work on my linux server.
# Does Acrobat for linux exist?
#
# --
# Oleg Tkachenko
# eXperanto team
# Multiconn Technologies, Israel
#
#
# -
# To unsubscribe, e-mail: [EMAIL PROTECTED]
# For additional commands, e-mail: [EMAIL PROTECTED]
#

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: FOP performance - frustrating.. help!!

2002-12-30 Thread Mirko Sertic
Hi Folks!

I think that java is not the problem. Sure, it has some problems with mass
data
computation, but it's the same than with every programming language : if
your code
is sh*t, your program will run slow.

I don't want to blame fop as sh*it. Please don't misunderstand me.

My thought is that the resulting slow fop translation depends on an
unoptimized
stylesheet, and also processor speed and system power. We are running fop on
our
JDK1.4.1 1.7 GB P4 512MB and the result is very satisfying. If i can believe
the fop statistics,
generating a simple list as described takes about 90ms per page, so ca. 10
pages per
second with 80 rows per page. So the report should be ready in about 1,2
seconds
The difference between 1,2 seconds and 5 minutes can result in slow CPU
speed or
an improper stylesheet.

A word to the fop team :

Fop is great. It's superb. Sure, some things needs to be implemented, but
its a great
tool for xsl-fo computation. Keep on the good work!!

Cheers

Mirko

-Ursprungliche Nachricht-
Von: Robert C. Leif [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 28. Dezember 2002 08:19
An: [EMAIL PROTECTED]
Betreff: RE: FOP performance - frustrating.. help!!


From: Bob Leif
To: Lee Insoo
A good deal of your problems comes from the selection of Java as the
programming language. Java is a tremendous marketing success. Unfortunately,
Java was obsolete the day it was created. Although Java is owned by SUN, it
has been the second finest gift to Microsoft. It has their competitors using
a flawed tool. The finest gift was when IBM told its customers that OS/2
would run best on Microchannel hardware.
The best language for web tools is Ada, which is ISO/IEC standard
8652:1995(E). It is what Java claimed to be, portable. Ada includes generics
(templates) which work; enumerated types; and, whenever possible, dispatches
at compile time. Ada is like XML in that it has range checking and begin and
end structures.
There is an excellent GNU Ada compiler (GNAT) available at
ftp://ftp.cs.nyu.edu/pub/gnat/
On a 1.4 gigaHz Pentium, the time for a GNAT compile and link is minimal.
The error-messages are excellent.
http://www.adaic.org/ is a source of useful information on Ada.

-Original Message-
From: Lee, Insoo [mailto:[EMAIL PROTECTED]
Sent: Friday, December 27, 2002 12:30 PM
To: '[EMAIL PROTECTED]'
Subject: FOP performance - frustrating.. help!!


  Hello, I'm getting a little frustrated with FOP performance.
  We are generating an XML on the fly that contains a few tables with about
1,000 rows in total.
  We passdown this XML along with XSL to the transformer to generate PDF
from our servlet.
  (transformer.transform( inXML, new SAXResult(
driver.getContentHandler()));  )
  It works well, but it works slow.
  It takes about 5 minutes for 1,000 rows and this is only for transformer
translation (excluing any data query time or jdom XML building time)
  I read through past emails/FAQs and I think I tried them all and it still
does not improve the performance...

  Please help!!

  Here is what I have done.

  1) run with more memory - yes I tried with 512MB (I don't get OutOfMemory
error)
  2) run in separate VM - only helps other requests coming to the site
  3) try with the latest FOP - I did - mine is fop-0.20.4
  4) try with the latest xalan.jar and xerces.jar - tried them, but no
improvement
  5) cache XSL style sheet - didn't really help...
  6) use multiple page-sequence - got it to work and I don't get
OutOfMemeory exception, but still performance didn't get better.
 (even if I break them into multiple page-sequences, I will still
have to read through one row at a time, right? - that's why performance is
not really improving..)

  7) no forward-reference - I don't have any page numbers
  8) try with new JDK - trying with JDK 1.3
  9) seralize servlet request - haven't done this, but I doubt this will
have any performance impact (I'm testing with one request for now)
  10) no images - I don't have any...
  11) Don't make the XML tree too deep - mine is very flat with 2 levels
deep.

  I have 1,000 rows and each row looks something like following in XML

  ROW
  TA_FUND_CODE539/TA_FUND_CODE
  LONG_NAMESome Fund/LONG_NAME
  DAILY_FACTOR0.376/DAILY_FACTOR
  SHORT_RATE_365NA/SHORT_RATE_365
  LONG_RATE_365NA/LONG_RATE_365
  RATE_360NA/RATE_360
  CURR_7_DAY_YIELDNA/CURR_7_DAY_YIELD
  SEVEN_DAY_EFF_YIELD1.4/SEVEN_DAY_EFF_YIELD
  AVG_30_DAY_RATE1.58000/AVG_30_DAY_RATE
  PRICE1./PRICE
  RATE_DATE09 Dec 2002/RATE_DATE
  CURRENCYUSD/CURRENCY
  STATUSI/STATUS
  /ROW


  Here is the question:
Is this normal to take this long - 5 minutes - to produce a few tables
with combined total 1,000 rows (about 30 pages)?

Any other better way?

  Thank you for your suggestions.

  Regards,
  IL

-
To 

AW: Call upon FOP within a c++ application

2002-11-29 Thread Mirko Sertic
Hello!

I'd prefer CORBA. It's more robust than sending a http request and easier to
support.
CORBA is also supported in the current jdk. For the C++ side, take a look at
the ACE / TAO
project. It's an open source orb and available for many platforms.

Using CORBA also enables you to have a bidirectinal communication between
the fop process and
the client application. You can send the logger output to the client to show
the state of the
current fop processing ( page number, and so on ).

It works for us and is already in use by some of our real world
applications.

Hope this helps.

PS : You could set up a FOP - Server , a process that waits for CORBA
requests and generates PDF
or PCL output. This would also increase performance, since the java vm would
not be loaded every
request. This saves on slower machines in some cases more than 10
seconds


-Ursprüngliche Nachricht-
Von: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 29. November 2002 08:05
An: [EMAIL PROTECTED]
Betreff: Re: Call upon FOP within a c++ application


On Friday 29 November 2002 01:43, Amit Bhatnagar wrote:
 Is it possible to call upon FOP with a c++ application?

Should be possible using JNI, the Java Native Interface (info at
java.sun.com).

 If it isn't possible, is my only alternative to make a system call
 and execute the FOP.bat?

You could also use an HTTP-based interface along these lines:

1. C++ makes HTTP request to FOP servlet including a unique filename

2. FOP servlet in turn makes HTTP request to C++ to get the XSL-FO data,
passing it the unique filename

3. C++ receives PDF from FOP

Which is a nicely decoupled and language-independent interface.

Hope this helps!
--
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
 blogspace http://www.codeconsult.ch/bertrand

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invoice positions partial sums

2002-11-20 Thread Mirko Sertic
Hello!

i'm working on a stylesheet that generates an invoice. I'd like to have a
partial sum on the bottom of the first page of the invoice, when
it has more than one page. Has anybody done this before?

Greetings

Mirko



AW: Invoice positions partial sums

2002-11-20 Thread Mirko Sertic
Hello!

sounds good. Unlikely it's not possible to change the structure of the xml
data. It's fixed by our customer.
Isn't there any other way? ( i think of faking around with the sum()
funktion and node tests? )

Cheers

Mirko

-Ursprüngliche Nachricht-
Von: Müller, Markus [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. November 2002 15:36
An: [EMAIL PROTECTED]
Betreff: AW: Invoice positions  partial sums


Hi Mirko,

when you provide the partial sums within the XML, you can work with markers.
This would look like this:

// -- the items all have a partialSum
xsl:for-each select=item
  fo:table-row
fo:table-cell
fo:block
  fo:marker marker-class-name=carry
xsl:value-of select=partialSum/
  /fo:marker
/fo:block
/fo:table-cell
  /fo:table-row
/xsl:for-each

// -- find the last partial sum on the page and display on page bottom
fo:static-content flow-name=xsl-region-after
  fo:block text-align=right
xsl:textcarry from this page: /xsl:text
fo:retrieve-marker retrieve-class-name=carry
retrieve-boundary=page

retrieve-position=last-ending-within-page/
  /fo:block
/fo:static-content

I hope, this will help a little bit (you can find many samples etc. on the
web just using google).

Markus

# -Ursprüngliche Nachricht-
# Von: Mirko Sertic [mailto:[EMAIL PROTECTED]
# Gesendet am: Mittwoch, 20. November 2002 14:11
# An: FOP-User (E-Mail)
# Betreff: Invoice positions  partial sums
#
# Hello!
#
# i'm working on a stylesheet that generates an invoice. I'd
# like to have a
# partial sum on the bottom of the first page of the invoice, when
# it has more than one page. Has anybody done this before?
#
# Greetings
#
# Mirko
#



AW: Examples

2002-05-16 Thread Mirko Sertic
Its not an error, its wrong java code

RENDER_PDF is s static member variable of the Driver class,
so you have to type:

driver.setRenderer(Driver.RENDER_PDF);

Cheers

Mirko


-Ursprungliche Nachricht-
Von: Lee Goddard [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 16. Mai 2002 16:39
An: [EMAIL PROTECTED]
Betreff: Examples


On the examples page of the xml.apache.org/fop site,
http://xml.apache.org/fop/embedding.html
there is this sample:

Driver driver = new Driver(new InputSource (args[0]),
   new FileOutputStream(args[1]));
driver.setRenderer(RENDER_PDF);
driver.run();

I thought perhaps RENDER_PDF referred to an (imported) constant.
But I from Java1.4 am told:

C:\PXML\_printing\test.java:33: cannot resolve symbol
symbol  : variable RENDER_PDF
location: class test
 driver.setRenderer(RENDER_PDF);

Could someone please tell me of my error?

TIA
Lee


Lee Goddard
perl -e while(1){print rand0.5?chr 47:chr 92}



AW : Fop OKI Matrix Printing

2002-05-13 Thread Mirko Sertic

Hello FOP-Folks!

After a few sleepless hours of work and pain, i created a FOP renderer wich
supports the
native instruction set of the EPSON emulation of my OKI matrix printer.

It's more than a prototype than anything else at the moment, but i keep on
working on it
and maybe someday It currently supports only one font and normal font
positioning.
The next version will also support bold printing, underlining and so on.

In fact i extended the printrenderer class and overwrote some methods to
handle a limmited
set of the printrenderer functionality.

If anyone is interrested in my experience creating this renderer, let me
know. Maybe we
can make a deal... :-)


Keep on coding


Mirko Sertic




AW: Memory usage on lage documents

2002-05-06 Thread Mirko Sertic
Hi there again!

Thanks for your help.

I think you are right and my extremly long page sequences are the matter.
In fact, i have only one page-sequence.

The problem is, i cannot create multiple page sequences because i do not
know
where to break my pages. Every table-row in my document is unique and so i
do
not know where to break.

I could limit the page-sequence to let me say 20 rows per page, but this
would
destroy my cool report layout ( I know that sounds silly but you know
customers whishes !!! )

Is there any other way?

Bye

Mirko

-Ursprungliche Nachricht-
Von: Cyril Rognon [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 6. Mai 2002 16:49
An: [EMAIL PROTECTED]
Betreff: Re: Memory usage on lage documents


Mirko,

there are many post on this list that point out the weaknesses of the FOP
engine. The main enemies are  : long page sequence and forward references.

If you use long tables, then you most certainly have long page sequences.
If you have logical page break in your tables, please, change your XSLT
code to generate page-sequence break in your tables. The shortest page
sequence the least memory used.

As for the lot of time to complete the work, it appear that forward
reference may be responsible for this. I hav had the same proble for 400 to
1000 pages documents that have the famous total number of pages at the
bottom of every pages. I have successfully set up an unclean workaround : I
generate my total number of pages after PDF generation is complete using
iText software. I even generate my toc at the end of the fo file and then I
move it at the top of the document and then write the number of pages at
the right place on every pages. This is pretty simple if you look at iText
sample code (itext.sourceforge.net).

The last thing : C++ or C or ASM formatter won't help much because it is
the global design that makes FOP slow and memory consumer. The redesign is
on it's way. The workarounds I have mentionned are just gizmo to allow one
to wait for the next generation of FOP.

Hope that helps,

Cyril


At 16:29 06/05/2002 +0200, you wrote:
Hi there folks!

I've a question regarding the memory usage of the fop formatter with large
documents.
I'm rendering a large list with about 450 pages and 1 table entries.

When i look ad the memory usage of the fop formatter in my win32
enrironment, i see
that it consumes about 180 MBytes of memory and it needs a lot of time to
complete its
work!

Is there any way to make it faster or to let it use not so much memory
without throwing
an out ot memory error?

Is there any c++ formatter out there that is open source and can do the
work
faster and
without so much memory usage?

Thanks a lot

Mirko



AW: XML Schema and XSLT design tools

2002-04-25 Thread Mirko Sertic
Hi there!

I use Stylus Studio for XML and XSLT developing. It has also support for FOP
and external Post-Processing.
An evaluation version is available at www.stylusstudio.com.

Greetings

Mirko

-Ursprüngliche Nachricht-
Von: Buonincontri, Steve (CAP, MMF, ITSS)
[mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. April 2002 16:06
An: [EMAIL PROTECTED]
Betreff: XML Schema and XSLT design tools



Any of you folks know of good tools to do XML Schema design and XSLT
development?

-sb
attachment: winmail.dat