Table column-width property

2003-02-12 Thread sujata
Hi,
  I have a table with different column width.
I get column width in a variable. How do i assign to the column-width 
property?

I gave it as,

where colwidth is a variable name holding the column width value.
But this value is not accepting and it gives the error :
Error in column-width property value "{$colwidth}"
Can anybody tell me how can i assign the variable  to column-width property
Thanks and Regards,
Sujata
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table column-width property

2003-02-12 Thread Oleg Tkachenko
sujata wrote:
I gave it as,

where colwidth is a variable name holding the column width value.
But this value is not accepting and it gives the error :
Error in column-width property value "{$colwidth}"
Seems to me you are trying to use variables in xsl-fo document instead of xsl 
stylesheet. Am I right?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Redy to use templates

2003-02-12 Thread Ingo Zawada



Hi there,
 
does anybody know a resource for ready to use xsl 
templates (like tex styles book , letter , refman)
 
MfG
Ing Zawada 


Re: Table column-width property

2003-02-12 Thread sujata
Oleg Tkachenko wrote:
Seems to me you are trying to use variables in xsl-fo document instead 
of xsl stylesheet. Am I right?
Sujata wrote:
   Exactly.. I need to give the column-width dynamically.
 Is it possbile to do that? If yes how can i do that?
-Thanks and Regards
Sujata





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


Re: Table column-width property

2003-02-12 Thread Oleg Tkachenko
sujata wrote:
   Exactly.. I need to give the column-width dynamically.

 Is it possbile to do that? If yes how can i do that?
Sure. But this should be done in XSLT stage, there is no notion of variables 
in XSL-FO. Fromatting is two-step process, first source document is 
transformed to result tree using XSLT and then result tree is formatted by 
FOP. Get some XSL tutorial, that's really basics.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: Could not load external SVG

2003-02-12 Thread Jiri_Nejedly

I upgraded FOP to 0.20.5 and now the error is different::

[ERROR]: Error while creating area : No ImageReader for this type of image
(file:/D:/JD9/jdev/system9.0.3.1035/oc4j-config/ordpas/ord29396pas)

Mentioned file is jpg without extension. However,  I also tried to rename
the file before FOP calling, and the same error is reported. It works this
way only when calling embedded FOP. Calling bat file is ok.

- Is reported error problem of image file at all ?

If yes then:

- Can FOP recognize graphics files without extensions ? If no, must I use
extension  or attribute content-type="content-type:image/jpeg"  or is
something wrong with this format :
file:/D:/JD9/jdev/system9.0.3.1035/oc4j-config/ordpas/ord29423pas

?




>[EMAIL PROTECTED] wrote:
> ...
> 
> 
> 
> ...
>> Now I upgraded my Oracle's JDeveloper from version 9.0.2 to 9.0.3 and
now
>> FOP reports this error:
>>
>> [ERROR]: Could not load external SVG: SAX2 driver class
>> org.apache.xerces.parsers.SAXParser not found
>>
>> The library xerces.jar (distributed with FOP) containing mentioned class
is
>> in project libraries list (always was).
>
>I'd guess the upgrade contains already an XML parser, and
>it's a SAX1 parser only.
>Ask your friendly Oracle support.
>
>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]



Re: Could not load external SVG

2003-02-12 Thread Jiri_Nejedly

Please ignore this thread, I found reason why this happens -  two files
have zero length.



>I upgraded FOP to 0.20.5 and now the error is different::
>
>[ERROR]: Error while creating area : No ImageReader for this type of image
>(file:/D:/JD9/jdev/system9.0.3.1035/oc4j-config/ordpas/ord29396pas)>
>
>Mentioned file is jpg without extension. However,  I also tried to rename
>the file before FOP calling, and the same error is reported. It works this
>way only when calling embedded FOP. Calling bat file is ok.
>
>- Is reported error problem of image file at all ?
>
>If yes then:
>
>- Can FOP recognize graphics files without extensions ? If no, must I use
>extension  or attribute content-type="content-type:image/jpeg"  or is
>something wrong with this format :
>file:/D:/JD9/jdev/system9.0.3.1035/oc4j-config/ordpas/ord29423pas

>
>
>>[EMAIL PROTECTED] wrote:
>> ...
>> 
>> 
>> 
>> ...
>>> Now I upgraded my Oracle's JDeveloper from version 9.0.2 to 9.0.3 and
>now
>>> FOP reports this error:
>>>
>>> [ERROR]: Could not load external SVG: SAX2 driver class>
>>> org.apache.xerces.parsers.SAXParser not found
>>>
>>> The library xerces.jar (distributed with FOP) containing mentioned
class
>is
>>> in project libraries list (always was).
>>
>>I'd guess the upgrade contains already an XML parser, and
>>>it's a SAX1 parser only.
>>Ask your friendly Oracle support.
>>
>>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]



Batik - FOP

2003-02-12 Thread Annick Fron
I am converting svg to pdf using batik rasterizer and fop, but the dpi
parameter seems to be locked to 72.
Any way to bypass this ?
-- 
Annick Fron
AFC Europe
B.P. 111, 977 avenue du Docteur Julien Lefebvre
06271 Villeneuve-Loubet France
Tél : +33 4 93 22 88 18
Fax : +33 4 93 22 88 36
http://www.afceurope.com



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



Javabean

2003-02-12 Thread Matthew Lancashire
Culd I package a xml to pdf class that I have written as a Javabean and call
it from asp page?

Matthew Lancashire
IT Project Manager
Intitial Electronic Security Ltd

Tel: +44 1282 473554
Fax: +44 1254 267552


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



Fop and Multithreading.

2003-02-12 Thread frederic . kieffer
Hi everybody!
Sorry to bother you again with my problem (running fop with EJBs), I'd like
to say that I still experience font corruption even if I use a singleton
class (or maybe i didn't design it correctly). 
So we felt back to a sequential approach to print our documents. We just
lost the speed we had when we tried to parallelize the documents' generation
(3s vs 20s).
So you can understand that when we have 3000 documents too print, this is
rather annoying.
If anybody had news about this subject, it'd be really welcome.
Thanks
Frédéric

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



Antwort: Re: Fop and multithreading.

2003-02-12 Thread reto . blunschi

After some debugging and quite some time to get information on the
implications of multithreaded access to AWT/Swing classes, I came to the
following conclusion:

To keep thread-safety in Swing/AWT  rendering operations can only be called
from one thread - normally this is the AWTEventDispatchThread. Swing/AWT
classes are NOT threadsafe by design.

The current situation:
a) in FOP singlethreaded: it is the main execution thread that does the
rendering. Because the AWTEventDispatchThread does not get any events in
FOP (no UI events)  this is the only thread that really does something ()
-> no threading issues. The AWTEventDispatchThread also runs in this setup,
but does not do any work.

b) FOP multithreaded: multiple client threads call rendering operations
concurrently, -> leading to the issues we see. (again the
AWTEventDispatchThread runs, but does not do any work.)


Solution:
Threadsafety in AWT/Swing is normally achieved by delegating all rendering
calls from client threads to the AWTEventDispatchThread using
javax.Swing.SwingUtilities#invokeLater(Runnable runnable) or #invokeAndWait
(). This means one wraps calls to render into the BufferedImage into
something like:

SwingUtilities.invokeLater(new Runnable() {
   public void run() {
graphics.setFont(font);
graphics.drawString(.);
   }
});

I have considered to refactor AWTRenderer to work like this, but soon
realized that this means a complete redesign of the involved classes. For
several reasons I can't do this right now (FOP maintenance branch -> no big
changes, project work that is urgent)

Workarounds:

- wrap FOP into a singleton and synchronize the render method. -> does only
use one processor. Threads are potentially blocked for quite some time  :
-((
or
- setup RMI / Corba Service / WebService that does the rendering, so we can
have several JVMs that contain their FOP instance and use some
load-balancing mechanism.
or
- use only one font / font size / color in the layout, it seems to work
then, by coincidence, though no guarantees.

I chose to go with the first for now, until I see that this causes
performance problems.
Additionally it might be good to document that AWTRenderer (and obviously
all subclasses) are not threadsafe.

Any comments?

Thanks,
Reto
___

CSS Versicherung
Reto Blunschi EXTERNE
Rösslimattstrasse 40
CH-6002 Luzern
Telefon  ++41 (0)41 369 1236
Telefax  ++41 (0)41 369 1212
[EMAIL PROTECTED]
www.css.ch




[EMAIL PROTECTED] on 11.02.2003 13:07:55

Bitte antworten an [EMAIL PROTECTED]

An:  [EMAIL PROTECTED]
Kopie:

Thema:   Re: Fop and multithreading.


Thanks for the testcase, Jeremias.

I got it running and can reliably reproduce the MT problems in AWTRenderer
with it, even on my single-processor NT 4.0 box.
I will have a closer look into the sources of AWTRenderer now...

___

CSS Versicherung
Reto Blunschi EXTERNE
Rösslimattstrasse 40
CH-6002 Luzern
Telefon  ++41 (0)41 369 1236
Telefax  ++41 (0)41 369 1212
[EMAIL PROTECTED]
www.css.ch




Jeremias Maerki <[EMAIL PROTECTED]> on 11.02.2003 11:19:55

Bitte antworten an [EMAIL PROTECTED]

An:  [EMAIL PROTECTED]
Kopie:

Thema:   Re: Antwort: Re: Antwort: Fop and multithreading.

Ok, I've put together a ZIP and put it under the URL below:
http://cvs.apache.org/~jeremias/FOPMTTestbed.zip

I hope you don't mind that it's heavily relying on Avalon (especially
Fortress). I've put all the necessary JARs in the lib directory. I
didn't include fop.jar and batik.jar which you can take from your local
FOP. I've also done a little Ant build.xml to make it easy to have some
fast results. You just have to adjust the FOP location in build.xml to
your local environment so it compiles.

To configure the whole thing look at FOPTestbed.xconf. There you can
specify the number of concurrent threads, which files to transform etc.

And finally, to test multithreading with the AWT Renderer just change
FOProcessorImpl.java accordingly. It currently generates PDF.

If you have questions, fire away. Happy debugging!

On 10.02.2003 16:50:18 Jeremias Maerki wrote:
> > Is the testcase you used in november available as a starter?
>
> I have it here. Just give me a little time to get it running again (I've
> got to check if it's still compatible with the latest Avalon Fortress
> version. I'll post a URL when I'm finished.



Jeremias Maerki


-
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

RE: Fop and Multithreading.

2003-02-12 Thread frederic . kieffer
you'll find my attached my code.

-Message d'origine-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Date: mercredi 12 février 2003 17:58
À: [EMAIL PROTECTED]
Objet: Fop and Multithreading.


Hi everybody!
Sorry to bother you again with my problem (running fop with EJBs), I'd like
to say that I still experience font corruption even if I use a singleton
class (or maybe i didn't design it correctly). 
So we felt back to a sequential approach to print our documents. We just
lost the speed we had when we tried to parallelize the documents' generation
(3s vs 20s).
So you can understand that when we have 3000 documents too print, this is
rather annoying.
If anybody had news about this subject, it'd be really welcome.
Thanks
Frédéric

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



PrintRenderer.java
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

The best way to control page break.

2003-02-12 Thread s-oualid

Hi mates,

I'm now using FOP for 2 months, we really appreciate this way to automatically generate our catalogs here.

I have to work those days on a new XSL:FO layout that must manage fine page break system.

Is there a better way for handling that than using the XSL string-length() and sum() with an xsl:if tag ? Maybe with the space-after properties ?

Thanks for your help on this question.




--
Simon OUALID
--
ARTE FRANCE
Analyste Programmeur
[EMAIL PROTECTED]
Tél : 01.55.00.70.70
Fax : 01.55.00.73.89
--


Re: Batik - FOP

2003-02-12 Thread J.Pietschmann
Annick Fron wrote:
I am converting svg to pdf using batik rasterizer and fop, but the dpi
parameter seems to be locked to 72.
Any way to bypass this ?
I'm not sure what you mean. SVG is vector graphics, and is rendered
as such into most renderers.
If you use pixel units for width and height, they will be converted
to real length units as if the resolution was 72dpi. Use real length
units to avoid this.
It is usually a good idea to use the same width and heigth on the
fo:external-graphics, for example if the SVG is
 
then use
 
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Antwort: Re: Fop and multithreading.

2003-02-12 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Additionally it might be good to document that AWTRenderer (and obviously
all subclasses) are not threadsafe.
In some sense, it already is.
J.Pietschmann

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


Re: Redy to use templates

2003-02-12 Thread J.Pietschmann
Ingo Zawada wrote:
does anybody know a resource for ready to use xsl templates (like tex styles
book , letter , refman)
It depends what you are looking for, I suppose you do
not search for a style sheet which converts Ant build.xml
files into graphviz source.
Look up DocBook, there is DocBook XSL at sourceforge. There
is also a variety of other projects working with XSLT at
sourceforge.
The XSL list might be of more help, provided you tell
a bit more about your application:
  http://www.mulberrytech.com/xsl/xsl-list/
J.Pietschmann

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