RE: Fonts don't line up in table

2002-06-11 Thread Matthew L. Avizinis
That would be fo:table-cell padding=2pt display-align=bottom
   ^^^

 -Original Message-
 From: Urban, Patrick [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 3:33 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Fonts don't line up in table


 Try ... fo:table-cell padding=2pt vertical-align=bottom

 -Original Message-
 From: Darrel Riekhof [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 3:26 PM
 To: [EMAIL PROTECTED]
 Subject: Fonts don't line up in table


 I'm having trouble getting different sized fonts to line up in a table.
 Below is my xsl code.  The smaller font is too high compared to the larger
 font.  How do I get these different sized fonts to line up by their base?

 fo:table
   fo:table-column column-width=100pt/
   fo:table-column column-width=435pt/
   fo:table-body font-size=20pt
 fo:table-row
   fo:table-cell padding=2pt
 fo:block font-size=16pt margin-bottom=0mmSide
 Mark/fo:block
   /fo:table-cell

   fo:table-cell padding=2pt
 fo:block font-weight=bold
   xsl:value-of select=freightItemVO/sidemark/
 /fo:block
   /fo:table-cell

 /fo:table-row
   /fo:table-body
 /fo:table

 Darrel
 [EMAIL PROTECTED]



RE: Fonts don't line up in table

2002-06-11 Thread Matthew L. Avizinis
Sorry, now I've got it straight
That would be fo:table-cell padding=2pt display-align=after
   ^^^^

 -Original Message-
 From: Urban, Patrick [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 3:33 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Fonts don't line up in table


 Try ... fo:table-cell padding=2pt vertical-align=bottom

 -Original Message-
 From: Darrel Riekhof [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 3:26 PM
 To: [EMAIL PROTECTED]
 Subject: Fonts don't line up in table


 I'm having trouble getting different sized fonts to line up in a table.
 Below is my xsl code.  The smaller font is too high compared to the larger
 font.  How do I get these different sized fonts to line up by their base?

 fo:table
   fo:table-column column-width=100pt/
   fo:table-column column-width=435pt/
   fo:table-body font-size=20pt
 fo:table-row
   fo:table-cell padding=2pt
 fo:block font-size=16pt margin-bottom=0mmSide
 Mark/fo:block
   /fo:table-cell

   fo:table-cell padding=2pt
 fo:block font-weight=bold
   xsl:value-of select=freightItemVO/sidemark/
 /fo:block
   /fo:table-cell

 /fo:table-row
   /fo:table-body
 /fo:table

 Darrel
 [EMAIL PROTECTED]



RE: Fonts don't line up in table

2002-06-11 Thread Darrel Riekhof
Thanks, that did it.

Darrel

-Original Message-
From: Matthew L. Avizinis [mailto:[EMAIL PROTECTED]
Sent: Monday, June 10, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Fonts don't line up in table


Sorry, now I've got it straight
That would be fo:table-cell padding=2pt display-align=after
   ^^^^

 -Original Message-
 From: Urban, Patrick [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 3:33 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Fonts don't line up in table


 Try ... fo:table-cell padding=2pt vertical-align=bottom

 -Original Message-
 From: Darrel Riekhof [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 3:26 PM
 To: [EMAIL PROTECTED]
 Subject: Fonts don't line up in table


 I'm having trouble getting different sized fonts to line up in a table.
 Below is my xsl code.  The smaller font is too high compared to the larger
 font.  How do I get these different sized fonts to line up by their base?

 fo:table
   fo:table-column column-width=100pt/
   fo:table-column column-width=435pt/
   fo:table-body font-size=20pt
 fo:table-row
   fo:table-cell padding=2pt
 fo:block font-size=16pt margin-bottom=0mmSide
 Mark/fo:block
   /fo:table-cell

   fo:table-cell padding=2pt
 fo:block font-weight=bold
   xsl:value-of select=freightItemVO/sidemark/
 /fo:block
   /fo:table-cell

 /fo:table-row
   /fo:table-body
 /fo:table

 Darrel
 [EMAIL PROTECTED]



Going nuts centering a table

2002-06-11 Thread Neil Cooper
Hi,

After going nuts for a day and a half and also trawling the archives of
fop-dev and fop-user and the FAQs, can anyone please enlighten me to
a) why the following code doesn't center the table and
b) how to do it !.

I've tried the FAQ from http://www.dpawson.co.uk/xsl/sect3/N8922.html#d65e78
, i.e.

fo:table width=[X] start-indent=(100% - [X]) div 2

yet that applies the indent to the cells, not the table.

The snippet below attempts to use tables within a table cell using fo:block
display-align=center, however it still doesn't center the table!

I also tried ...

fo:table table-layout=fixed text-align=center
from http://marc.theaimsgroup.com/?l=fop-devm=101318356612822w=2
on fop-dev but no luck !.

The FAQ on http://www.owal.co.uk/cgi-bin/fopfaq.cgi#__993 asks the right
question but doesn't give an answer (the setting of display-align=center
to the region body doesn't work.

I'm rendering using fop-0.20.3.

So here's my attempt at the table within a table solution from
http://marc.theaimsgroup.com/?l=fop-devm=100748671512873w=2 below. I'm
rendering a table with two columns 74mm  26mm in a table whose width is
200mm. (The code below is significantly cut down from what I'm actually
rendering).

If anyone can tell me the obvious mistake (if any) then I would much
appreciate it!.

Many thanks

Neil Cooper


---

?xml version=1.0 encoding=utf-8?
fo:root font-family=Helvetica
 font-size=12pt
 text-align=center
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=a4
   page-height=297mm
   page-width=210mm
   margin-top=10mm
   margin-bottom=6mm
   margin-left=10mm
   margin-right=10mm

fo:region-body margin-top=0mm margin-bottom=11mm/
fo:region-before extent=0mm/
fo:region-after extent=6mm/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=a4
  fo:flow flow-name=xsl-region-body 
fo:table
  fo:table-column column-width=200mm/
  fo:table-bodyfo:table-rowfo:table-cell
display-align=centerfo:block

fo:table
  fo:table-column column-width=26mm/
  fo:table-column column-width=74mm/
  fo:table-body font-family=Helvetica font-size=10pt
fo:table-row
  fo:table-cell border-width=0.05mm border-style=double
number-columns-spanned=1 
fo:block text-align=leftDescription/fo:block
  /fo:table-cell
  fo:table-cell border-width=0.05mm border-style=double
number-columns-spanned=1 
fo:block text-align=right0/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

  /fo:block/fo:table-cell/fo:table-row/fo:table-body
/fo:table

  /fo:flow
/fo:page-sequence
/fo:root





Doubt regarding XSLProcessor.process

2002-06-11 Thread vinod . nayak



Hi 
all,

I am using 
fop-0.20.3rc version of FOP to generate PDF 
files.
These are few lines 
of code I used to generate the PDF reports.

xslProcessor = 
XSLTProcessorFactory.getProcessor(); --1

xslProcessor.process(new XSLTInputSource(new 
FileReader(XSLFile)),new XSLTInputSource(new 
FileReader(XMLFile)),  new 
XSLTResultTarget(PDFFile)); 
--- 2

and So 
On..

I am generating 
PDF reports of about more than 5000for each trigger of 
the component.
So, the above loop 
is run for those number of times.
What i need to know 
is, whether the XSL file is processed for every loopOR it 
caches
the result of the 
process once done. [ In the 2nd method ]
If it processes for 
every loop, is there any way to process the XSL sheet 
separately
and keep the result 
in any suitable object variable, and use that with XML file to genearte 
reports.
Because the 
XSL filename is constant and only XML and 
PDF file name varies for every loop.


Regards,

Vinod Nayak
i-flex solutions 
ltd.
Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 
13[EMAIL PROTECTED]



   This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.!



RE: row fragmentation problem..

2002-06-11 Thread vinod . nayak



Thanks 
Florence..

but 
the process has become little slow.
Is 
that attribute ' keep-together='always' " becoming a 
overhead?

  -Original Message-From: Florence Deforge 
  [mailto:[EMAIL PROTECTED]Sent: Monday, June 
  10, 2002 1:04 PMTo: [EMAIL PROTECTED]Subject: Re: 
  row fragmentation problem..
  Example : 
  fo:table border="none" 
  text-align="left" fo:table-column 
  column-width="90mm"/
   fo:table-column 
  column-width="90mm"/
  fo:table-body 
  fo:table-row border="none" 
  keep-together="always" 
  fo:table-cell 
  border="0" 
  !-- cell content --
  /fo:table-cell
   
  fo:table-cell 
  border="0" 
  !-- cell content --
  /fo:table-cell
   
  /fo:table-row
  /fo:table-body
  /fo:table
   
  
  The page-break will always occur before the 
  beggining of the row, if the row can't be displayed in the current 
  page.
  
  Flo
  
- Original Message - 
From: 
[EMAIL PROTECTED] 

To: [EMAIL PROTECTED] 
Sent: Monday, June 10, 2002 8:53 
AM
Subject: RE: row fragmentation 
problem..

No,

Please tell me the usage. Though I used it, 
it wasn't working..

  -Original Message-From: Florence Deforge 
  [mailto:[EMAIL PROTECTED]Sent: Friday, 
  June 07, 2002 5:16 PMTo: [EMAIL PROTECTED]Subject: 
  Re: row fragmentation problem..
  Have you tried the keep-together property on 
  table-row ?
  
- Original Message - 
From: 
[EMAIL PROTECTED] 

To: [EMAIL PROTECTED] 
Sent: Friday, June 07, 2002 12:01 
PM
Subject: RE: row fragmentation 
problem..

Though I increase the page height ( width does 
not matter in this problem ),
I think, it is not going serve any purpose. The 
decision comes at the end of the page whether to
move the entire row to the next page or 
not.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Friday, June 
  07, 2002 3:12 PMTo: 
  [EMAIL PROTECTED]Subject: RE: row fragmentation 
  problem..
  increase ur page width as well as table width .it will work 
  fine.
  
  Regards 
  Sanjib Ku. 
  Das 
  PQFGHIJ 
  (080) 5597600 
  -3868 **it's 
  impossible to judge your talent until and unless you exercise 
  it. **Believe in 
  attitude, not in talent.
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]Sent: Friday, June 
07, 2002 2:37 AMTo: 
[EMAIL PROTECTED]Subject: row fragmentation 
problem..
Hi,

I have a 
Table whose contents span over multiple 
pages.
I have 
to ensure the the contents of a cell within a 
row of 
that 
table should not be carried over to the next 
page.
In this 
case, the more appropriate idea would be moving the 
whole
row to 
the next page. How could I handle this thing, in the XSL 
sheet?

Vinod Nayak
i-flex 
solutions ltd.
Voice: (91)-228 43 00, x 6501 
Fax:(91)-22-843 13[EMAIL PROTECTED]


 
This message contains privileged and confidential information and is 
intended only for the individual named.If you are not the intended 
recipient you should not disseminate,distribute,store,print, copy or 
deliver this message.Please notify the sender immediately by e-mail 
if you have received this e-mail by mistake and delete this e-mail 
from your system.E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be 
intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
contain viruses.The sender therefore does not accept liability for 
any errors or omissions in the contents of this message which arise 
as a result of e-mail transmission. If verification is required 
please request a hard-copy version. 

   
  This message contains privileged and confidential information and is 
  intended only for the individual named.If you are not the intended 
  recipient you should not disseminate,distribute,store,print, copy or 
  deliver this message.Please notify the sender 

Re: What else than PCL?

2002-06-11 Thread Jeremias Maerki
I'm not no familiar with the PCL renderer, so I can't help here
immediately. But you've got the possibility to use the AWT renderer and
print directly to a printer. Have a look at the documentation and the
FOPPrintServlet in docs/examples/embedding.

Another possibility is to create a PDF or a PS file and use GhostScript
to convert it to the target printer format (ex. PCL). This will be
rather slow, though. Or you can print a PDF on the command line using
Acrobat Reader. Examples of everything should also be in the mailing
list archive and maybe even in the FAQ.

 trying to convert a FO file including some bitmap
 images to PCL ends up with:
  
 [INFO]: FOP 0.20.3
 [INFO]: building formatting object tree
 [INFO]: rendering areas to PCL
 [INFO]: [1]
 [ERROR]: null
 
 The only image format which is recognized by FOP/PCL
 is the GIF format. However the rendering doesn't also
 work.
 
 Coming to this result the PCLRenderer is useless at
 least for my need.
 
 My Problem is, I don't know how else I can get my FO
 file straight and rendered to a printer.
 
 Is there anyone who can tell me howto achieve this. 

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



Re: Doubt regarding XSLProcessor.process

2002-06-11 Thread Keiron Liddle
look at this page:
http://xml.apache.org/xalan-j/usagepatterns.html

in particular the section titled Multithreading

On Tue, 2002-06-11 at 07:47, [EMAIL PROTECTED] wrote:
 Hi all,
  
 I am using fop-0.20.3rc version of FOP to generate PDF files.
 These are few lines of code I used to generate the PDF reports.
  
 xslProcessor = XSLTProcessorFactory.getProcessor();   --1
  
 xslProcessor.process(new XSLTInputSource(new FileReader(XSLFile)),new
 XSLTInputSource(new FileReader(XMLFile)), 
  new XSLTResultTarget(PDFFile)); ---   2
  
 and So On..
  
 I am generating PDF reports of about more than 5000 for each trigger of the
 component.
 So, the above loop is run for those number of times.
 What i need to know is, whether the XSL file is processed for every loop OR
 it caches
 the result of the process once done. [ In the 2nd method ]
 If it processes for every loop, is there any way to process the XSL sheet
 separately
 and keep the result in any suitable object variable, and use that with XML
 file to genearte reports.
 Because the XSL filename is constant and only XML and PDF file name varies
 for every loop.
  
  
 Regards,
 
 Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 
 Fax:   (91)-22-843 13
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  
  
 
 This message contains privileged and confidential information and is
 intended only for the individual named.If you are not the intended recipient
 you should not disseminate,distribute,store,print, copy or deliver this
 message.Please notify the sender immediately by e-mail if you have received
 this e-mail by mistake and delete this e-mail from your system.E-mail
 transmission cannot be guaranteed to be secure or error-free as information
 could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
 contain viruses.The sender therefore does not accept liability for any
 errors or omissions in the contents of this message which arise as a result
 of e-mail transmission. If verification is required please request a
 hard-copy version.
 




Re: What else than PCL?

2002-06-11 Thread Darya Said-Akbari
Thanks for your hint.

In all I have 1 second to get an Bean Object into my
FO file and then on paper. This has to happen
automatically.

So, PDF or PS with Ghostscript or getting the print
through a call from the commandline do not help me.

But your hint to use the AWT renderer sounds
interestingly. 

I will try that out. 

regards,
Darya



 --- Jeremias Maerki [EMAIL PROTECTED]
schrieb:  I'm not no familiar with the PCL renderer,
so I
 can't help here
 immediately. But you've got the possibility to use
 the AWT renderer and
 print directly to a printer. Have a look at the
 documentation and the
 FOPPrintServlet in docs/examples/embedding.
 
 Another possibility is to create a PDF or a PS file
 and use GhostScript
 to convert it to the target printer format (ex.
 PCL). This will be
 rather slow, though. Or you can print a PDF on the
 command line using
 Acrobat Reader. Examples of everything should also
 be in the mailing
 list archive and maybe even in the FAQ.
 
  trying to convert a FO file including some bitmap
  images to PCL ends up with:
   
  [INFO]: FOP 0.20.3
  [INFO]: building formatting object tree
  [INFO]: rendering areas to PCL
  [INFO]: [1]
  [ERROR]: null
  
  The only image format which is recognized by
 FOP/PCL
  is the GIF format. However the rendering doesn't
 also
  work.
  
  Coming to this result the PCLRenderer is useless
 at
  least for my need.
  
  My Problem is, I don't know how else I can get my
 FO
  file straight and rendered to a printer.
  
  Is there anyone who can tell me howto achieve
 this. 
 
 Cheers,
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Tel. +41 41 317 2020 - Fax +41 41 317 2029
 Internet http://www.outline.ch
 

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Kreative Köpfe gesucht! Machen Sie mit beim Yahoo! SMS Literatur Wettbewerb und 
gewinnen Sie tolle Preise - http://smswettbewerb.yahoo.de


RE: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-11 Thread Keiron Liddle
I stand corrected.
It does need to be a BooleanKey to work properly.
Once I fixed that it doesn't work anymore anyway.

I think various changes in batik mean that it needs to be handled
differently.


On Tue, 2002-06-11 at 00:15, Vollmer, Thomas - CannonSA wrote:
 Actually, that's not the case. Notice that I'm calling
 public void setTranscodingHints(Map hints) and NOT
 public void setTranscodingHints(TranscodingHints hints).
 
 The first does this.hints.putAll(hints); (i.e. add), 
 the second one does this.hints = hints; (i.e. replace).
 
 The JavaDoc for these two methods is a litte confusing
 by the way. I had to look at the code to figure this out.




Re: Problem with image resolution in FOP = It works!

2002-06-11 Thread pascal.munerot
Hi,

I have just tried your hint and it happens to work. I have checked that
the printed image was okay with a barcode reader.
Thanks for your help.

Pascal


It works
 [EMAIL PROTECTED] wrote:
 Hi,

 Do you know if it is possible to generate SVG from a bitmapped graphic
 (GIF or JPEG. The API i use does not generate SVG unfortunately). I
 shall give a try at SVG (if I can embed or convert the barcode image).

 Oops, I got the impression you generated your barcodes
 as SVG, because you fiddled with an SVG class.
 If you use a bitmap format, simply put width and height
 on the fo:external-graphic element to scale it to the size
 tou want to have. Use any bitmap size you want, it will be
 scaled. This may give artifacts on low resolution screens,
 print it for final judgement. If you want to be sure that
 it is mapped to the printer without rounding artifacts,
 use an image width so that image-pixel-width/fo-width divides
 the printer resolution, for example
  printer: 600 dpi
  suggested resolution: 300 dpi
  width on paper output: 5.08 cm (2 inch)
  use 300 dpi*2inch=600 pixel width
 Each pixel of your bitmap will then be printed using 2 printer
 pixels (hopefully).

 I am also considering the use of a barcode font. On the project for
 which I am working, they used a barcode font in order to produce small
 but still high quality barcodes). I wondered if it is possible to do
 such a thing with FOP (I have seen somewhere in FOP samples that it
 was supposedly possible but I have not yet given it a try).

 It is possible, at least in theory. Get a font, and look into
 docs/htmnl/docs/fonts.html for how to use it with FOP. Unfortunately,
 barcodes are not unicode characters, and font importing sometimes
 fails because the font files do not contain an unicode mapping.


 J.Pietschmann





stykesheet attribute version

2002-06-11 Thread Jochen . Maes
hi guyz/gurlz i'm back :D


i have an error, i've been searchin the marc.theaimsgroup.com archive for
the solution, but can't really find it...
i know it can be solved...

anyway, i get the error:
java.xml.transform.TransformerConfigurationException: stylesheet requires
attribute: version...

of course it is there, but still i get the error, i maved the version tag
in the attributes before and after each of the other attributes... but
still same error...

I use the xalan and the xerces (but it's the xalan that gives an error)

i had that error once but it resolved itself...

now on my development enviroment i don't have the error but i use the same
jars, same xsl's etc...

but i get the error on the productionmachine

please advise...

Jochen


Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



how to output WML???

2002-06-11 Thread shadows
can someone tell me how to output wml??
shadows
[EMAIL PROTECTED]



RE: Block and page changing

2002-06-11 Thread Hahn Kurt (CHA)

I tried to use the keep-together property on a table row, but I'm not sure
if it's really working. Can somebody tell me the right syntax? What I tried
is this:
fo:table-row font-size=9pt keep-together=true
I couldn't figure what value I have to give it...

Kurt


-Message d'origine-
De : Ramon Maria Gallart [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 12:38
À : [EMAIL PROTECTED]
Objet : RE: Block and page changing


Thanks Jens and Florencs for your answers. They all both fit my needs.

Ramon.


Re: What else than PCL?

2002-06-11 Thread Darya Said-Akbari
When I try the direct printing by Fop foo.fo -print
the Windows 2000 Fax wizard pops up.

My first try for direct printing was to use the Java
Communications API with a PCL ByteArrayOutputStream.
I set my port to LPT1 and all was fine except the PCL
Rendering. So PCL rendering couldn't help me.

Now I try above and the result is again not that what
I want. Why the hell does this wizard pops up? I don't
want send anything to a fax. 

I want to print directly to MY printer on LPT1,
without any interaction.

By the way, AWT rendering Fop foo.fo -awt works
fine. Nevertheless I want it on paper and not as a
preview.

So, can anyone tell me how to achieve my printout? Or
isn't it possible at all? 

Any hints are welcome!

regards,
Darya




 --- Darya Said-Akbari [EMAIL PROTECTED]
schrieb:  Thanks for your hint.
 
 In all I have 1 second to get an Bean Object into my
 FO file and then on paper. This has to happen
 automatically.
 
 So, PDF or PS with Ghostscript or getting the print
 through a call from the commandline do not help me.
 
 But your hint to use the AWT renderer sounds
 interestingly. 
 
 I will try that out. 
 
 regards,
 Darya
 
 
 
  --- Jeremias Maerki [EMAIL PROTECTED]
 schrieb:  I'm not no familiar with the PCL
 renderer,
 so I
  can't help here
  immediately. But you've got the possibility to use
  the AWT renderer and
  print directly to a printer. Have a look at the
  documentation and the
  FOPPrintServlet in docs/examples/embedding.
  
  Another possibility is to create a PDF or a PS
 file
  and use GhostScript
  to convert it to the target printer format (ex.
  PCL). This will be
  rather slow, though. Or you can print a PDF on the
  command line using
  Acrobat Reader. Examples of everything should also
  be in the mailing
  list archive and maybe even in the FAQ.
  
   trying to convert a FO file including some
 bitmap
   images to PCL ends up with:

   [INFO]: FOP 0.20.3
   [INFO]: building formatting object tree
   [INFO]: rendering areas to PCL
   [INFO]: [1]
   [ERROR]: null
   
   The only image format which is recognized by
  FOP/PCL
   is the GIF format. However the rendering doesn't
  also
   work.
   
   Coming to this result the PCLRenderer is useless
  at
   least for my need.
   
   My Problem is, I don't know how else I can get
 my
  FO
   file straight and rendered to a printer.
   
   Is there anyone who can tell me howto achieve
  this. 
  
  Cheers,
  Jeremias Märki
  
  mailto:[EMAIL PROTECTED]
  
  OUTLINE AG
  Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
  Tel. +41 41 317 2020 - Fax +41 41 317 2029
  Internet http://www.outline.ch
  
 

__
 
 Gesendet von Yahoo! Mail - http://mail.yahoo.de
 Kreative Köpfe gesucht! Machen Sie mit beim Yahoo!
 SMS Literatur Wettbewerb und gewinnen Sie tolle
 Preise - http://smswettbewerb.yahoo.de

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Kreative Köpfe gesucht! Machen Sie mit beim Yahoo! SMS Literatur Wettbewerb und 
gewinnen Sie tolle Preise - http://smswettbewerb.yahoo.de


Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

Do you mean that there is no way around it?
weird, i can run it from my workstation (same os etc only diff processor
and less memory)
can't be...

if someone knows how to resolve it i would really appreciate it...

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.




Peter Jacobs

[EMAIL PROTECTED]To: [EMAIL PROTECTED] 
  
magie.comcc:   

  Subject: Re: stykesheet 
attribute version 
11/06/2002 11:28

Please respond to   

fop-user









[EMAIL PROTECTED] wrote:

 anyway, i get the error:
 java.xml.transform.TransformerConfigurationException: stylesheet requires
 attribute: version...

 of course it is there, but still i get the error, i maved the version tag
 in the attributes before and after each of the other attributes... but
 still same error...

looks like:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813
sorry, is not really helpfull...


Peter Jacobs
Freelance multimedia programmeur
De Budetstraat 8
B-3201 Aarschot
[EMAIL PROTECTED]
016/573257







Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
Do you mean that there is no way around it?
weird, i can run it from my workstation (same os etc only diff processor
and less memory)
can't be...
if someone knows how to resolve it i would really appreciate it...
The exception means that xslt processor couldn't see version attribute in the 
xsl stylesheet.
Make sure your xsl is ok and you are not trying to provide xml file instead of 
xsl stylesheet. If this doesn't help, show us what are you doing and how.

--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
java -cp
kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;.
com.kbcsecurities.test.Startup
You didn't show us how you build initprops Map, please.

public void process(Map props) throws ProcessException {
DOMResult res = null;
TransformerFactory transFactory;
Transformer transForm;
String language;
// XML Parsen en de preparatie van het document zodat de renderer
// de juiste gegevens heeft.
try{
language = (String)props.get(languageKey);
transFactory = TransformerFactory.newInstance();
At this point you can check whether 
(Node)TransformDocs.get(((String)props.get(languageKey)) + _XSL) returns you 
valid stylesheet DOM document, e.g. try to serialize it and inspect.

--
Oleg Tkachenko
Multiconn International Ltd, Israel


RE: stykesheet attribute version

2002-06-11 Thread Torsten Erler
I think you should try this:

?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0
!-- optional --
xsl:output method=xml indent=yes encoding=ISO-8859-1/

note at the version attribute inside the xsl:stylesheet tag

cu Torsten

ps:

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Dienstag, 11. Juni 2002 14:50
 To: [EMAIL PROTECTED]
 Subject: Re: stykesheet attribute version



 i showed the code in the first mail , and i do implement the
 version in the
 tag...
 look below...

 ?xml version=1.0? !-- this one i removed once and reset
 back cause it
 didn't change the bugga--
 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform; xmlns:fo=
 http://www.w3.org/1999/XSL/Format;
   xsl:output method=html/

--x SNIP



Re: stykesheet attribute version

2002-06-11 Thread Peter Jacobs
[EMAIL PROTECTED] wrote:
Do you mean that there is no way around it?
weird, i can run it from my workstation (same os etc only diff processor
and less memory)
can't be...
The fact that it is logged in bugzilla does not imply it is a bug, in 
fact that one was tagged as invalid (see comment at bottom). But that 
comment doesn't help you much...

 this is how i call my whole application

 java -cp 
kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;. 

 com.kbcsecurities.test.Startup

That jaxp.jar looks suspicious to me, do you need it? Does it work if 
you remove it? I would think xerces and xalan is enough? I would bet 
there some problem in your classpath and the wrong XSLT-engine is called 
or so.

(I am absolutely not an XML expert, just trying to help a bit... :-)
Peter



Re: What else than PCL? - Performanceproblem with AWT rendering

2002-06-11 Thread Darya Said-Akbari
Now it works. The problem was that my printer was not
the default printer.

When I compare the AWT rendering with my former PCL
rendering, I am far away from my  1 second in all.

While I had times between 2 and 3 seconds with PCL , I
have now times between 11 and 18 seconds with AWT.

How can I reach my 1 second goal?

Any hints are welcome.

regards,
Darya



__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Kreative Köpfe gesucht! Machen Sie mit beim Yahoo! SMS Literatur Wettbewerb und 
gewinnen Sie tolle Preise - http://smswettbewerb.yahoo.de


Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

ok don't complain if it is a lot of code:
the Sequence.xml is also pasted inside

public Processor(){
ResourceBundle sequence = ResourceBundle.getBundle(Sequence);
inFile = new File(sequence.getString(Sequence));
LoggerFactory.getLogger().log(this.getClass
(),ILogger.LEVEL_DEBUG,Initialisatie van de Processor\nSequenca file :  +
inFile);
init();
}

public void init(){
try{
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance
();
DocumentBuilder db = dbf.newDocumentBuilder();
Document DocSeq = db.parse(inFile);
NodeList sequencesList = DocSeq.getDocumentElement
().getElementsByTagName(Sequences);
for(int a=0;asequencesList.getLength();a++){
Element sequenceElem = (Element) sequencesList.item(a);
NodeList subseqsList = sequenceElem.getElementsByTagName
(Seq);
for (int i=0;isubseqsList.getLength();i++){
Element subSequenceElem = (Element)
subseqsList.item(i);
Sequence sequence = new Sequence();
NodeList stepsList =
subSequenceElem.getElementsByTagName(Step);
for(int x = 0;xstepsList.getLength();x++){
Element stepElem = (Element)stepsList.item(x);
LoggerFactory.getLogger().log(this.getClass
(),ILogger.LEVEL_DEBUG,\nStep Element :  +stepElem.getAttribute
(class));
IProcess process = (IProcess)
Class.forName(stepElem.getAttribute(class)).newInstance();
Map initProps = new HashMap();
NodeList parmList = stepElem.getElementsByTagName
(param);
for(int y = 0;y  parmList.getLength();y++){
LoggerFactory.getLogger().log(this.getClass
(),ILogger.LEVEL_DEBUG,\n Element Name :  +
parmList.item(y).getAttributes().getNamedItem(name).getNodeValue());
initProps.put(parmList.item(y).getAttributes
().getNamedItem(name).getNodeValue(),parmList.item(y).getAttributes
().getNamedItem(value).getNodeValue());
}
process.init(initProps);
sequence.addStep(process);
}
//add created sequence to container;
mapsequences.put(sequenceElem.getAttribute(type) +
subSequenceElem.getAttribute(type), sequence);
}
}
} catch (ParserConfigurationException pce){
LoggerFactory.getLogger().log(this.getClass(),pce, true);
rtnBean.setErrorMessage(MSG);//Document kon niet gemaakt
worden
rtnBean.setOk(false);
} catch (SAXException se){
LoggerFactory.getLogger().log(this.getClass(), se, true);
rtnBean.setErrorMessage(MSG);
rtnBean.setOk(false);
} catch (IOException ie){
LoggerFactory.getLogger().log(this.getClass(), ie, true);
} catch (Exception e){
LoggerFactory.getLogger().log(this.getClass(), e, true);
}

}

Sequence.xml

XML_Stream
 Sequences type=PRINT
  Seq type=PORTFOLIO
   Step id=1 class
=com.kbcsecurities.rendering.processes.XMLParser
param name=sourceKey value=inPath/
param name=targetKey value=XMLDoc/
   /Step
   Step id=2 class
=com.kbcsecurities.rendering.processes.PFPrintSettings
param name=sourceKey value=XMLDoc/
param name=fileToRender value=FilePDF/
param name=languageKey value=Language/
   /Step
   Step id=3 class
=com.kbcsecurities.rendering.processes.XSLFOTransformer
param name=NL_XSL value
=d:/projects/fop/XSL/OverzichtEffectenPortefeuille_NL.xsl/
param name=FR_XSL value
=d:/projects/fop/XSL/OverzichtEffectenPortefeuille_FR.xsl/
param name=UK_XSL value
=d:/projects/fop/XSL/OverzichtEffectenPortefeuille_UK.xsl/
param name=sourceKey value=XMLDoc/
param name=targetKey value=FODoc/
param name=languageKey value=Language/
   /Step
   Step id=4 class
=com.kbcsecurities.rendering.processes.FopTransformer
param name=sourceKey value=FODoc/
param name=targetKey value=TmpPDF/
param name=configFile value
=d:/java/fop/userconfig.xml/
   /Step
   Step id=5 class
=com.kbcsecurities.rendering.processes.WatermarkTransformer
param name=backgroundimage value
=file:///d:/images/Logo/Kbcs.jpg/
param name=sourceKey value=TmpPDF/
param name=targetKey value=FinalPDF/
   /Step
   Step id=6 class
=com.kbcsecurities.rendering.processes.FileWriter
  

Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

hi Peter,

I tried without it, but doesn't change a thing... still get the same
error...

and no worries, every help is help... and sometimes other peeps see more
then you do after looking @ it for ages :-)

greets


Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
ok don't complain if it is a lot of code:
Well, that was really not much, but too hard to grasp, so lets begin from 
another side:

 public void process(Map props) throws ProcessException {
DOMResult res = null;
TransformerFactory transFactory;
Transformer transForm;
String language;
// XML Parsen en de preparatie van het document zodat de renderer
// de juiste gegevens heeft.
try{
language = (String)props.get(languageKey);
transFactory = TransformerFactory.newInstance();

Lets serialize xsl doc at this point to see whether it's ok:
Node xslDOM = (Node)TransformDocs.get(((String)props.get(languageKey)) + 
_XSL);
Transformer idTransform = transFactory.newTransformer();
idTransform.transform(new DOMSource(xslDOM), new StreamResult(System.out));
And what is at the System.out after that ?
--
Oleg Tkachenko
Multiconn International Ltd, Israel


unsubscribe me

2002-06-11 Thread Sanzone, Vincenzo (Exchange)
please unsubscribe me from the email list. Thank You.


***
Bear Stearns is not responsible for any recommendation, solicitation, 
offer or agreement or any information about any transaction, customer 
account or account activity contained in this communication.
***



-unsubscribe

2002-06-11 Thread Gabriele Gigliotti
-unsubscribe




Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

Oleg,


i get my whole xsl file bact printed out... (as good as i can see it...)

if you want it i'll write the output to file...

let me know

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



   
Oleg
   
TkachenkoTo: [EMAIL PROTECTED]  
 
[EMAIL PROTECTED]cc:   

onn.com Subject: Re: stykesheet attribute 
version 

   
11/06/2002  
   
16:51   
   
Please  
   
respond to  
   
fop-user
   

   

   




[EMAIL PROTECTED] wrote:
 ok don't complain if it is a lot of code:
Well, that was really not much, but too hard to grasp, so lets begin from
another side:

  public void process(Map props) throws ProcessException {
 DOMResult res = null;
 TransformerFactory transFactory;
 Transformer transForm;
 String language;
 // XML Parsen en de preparatie van het document zodat de renderer
 // de juiste gegevens heeft.
 try{
 language = (String)props.get(languageKey);
 transFactory = TransformerFactory.newInstance();

Lets serialize xsl doc at this point to see whether it's ok:

Node xslDOM = (Node)TransformDocs.get(((String)props.get(languageKey)) + 
_XSL);
Transformer idTransform = transFactory.newTransformer();
idTransform.transform(new DOMSource(xslDOM), new StreamResult(System.out));

And what is at the System.out after that ?

--
Oleg Tkachenko
Multiconn International Ltd, Israel







Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

Oleg, here is the file (copy and pasted it...)

thank you for your help



?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:output method=html/
 xsl:strip-space elements=*/
 xsl:template match=/
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
fo:simple-page-master margin-bottom=1.5cm
margin-left=2cm margin-right=2cm margin-top=1cm master-name
=landscape page-height=21cm page-width=29.7cm
 fo:region-body margin-top=3cm/
 fo:region-before extent=3cm/
 fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:simple-page-master margin-bottom=1cm margin-left
=2cm margin-right=2cm margin-top=1pt master-name=Brief page-height
=29.7cm page-width=21cm
 fo:region-body margin-bottom=4cm margin-top
=3cm/
 fo:region-before extent=3cm/
 fo:region-after extent=3.5cm/
/fo:simple-page-master
fo:simple-page-master margin-bottom=0cm margin-left
=2cm margin-right=2cm margin-top=3cm master-name=overzicht
page-height=29.7cm page-width=21cm
 fo:region-body margin-bottom=4cm margin-top
=3cm/
 fo:region-before extent=3cm/
 fo:region-after extent=3.5cm/
/fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-reference=Brief
  !-- De voetnoot.
   De algemene gegevens die kunnen vervangen worden zitten in
de footnote (NIET onder footnote-body dus.
   In de voetnoots body zitten de adresgegevens van KBC
Securities--
fo:static-content flow-name=xsl-region-after
 fo:block
  fo:footnote
   fo:inline
 fo:block font-family=Arialn
font-size=10pt
  xsl:text
___/xsl:text
 /fo:block
   /fo:inline
   fo:inline
 fo:block font-family=Arialn
font-size=10pt line-height=14pt
  fo:inline font-family
=Arial font-size=8pt vertical-align=super1/fo:inline
  fo:inline font-family
=Arialn font-size=10pt line-height=14pt Enkel schriftelijke reacties
kunnen in aanmerking genomen worden./fo:inline
 /fo:block
   /fo:inline
   fo:inline
   !--fo:block font-size=10pt
font-family=Arialn line-height=3pt vertical-align=super
 xsl:text
___/xsl:text
 /fo:block--
 fo:block font-family=Arial
font-size=8pt line-height=11pt
  fo:table border-style
=solid border-width=1pt
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-body
fo:table-row

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

fo:inline font-family=Arialbd font-size=8 font-weight
=boldBrussels/fo:inline

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textAmsterdam/xsl:text

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textMadrid/xsl:text

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textNew York/xsl:text

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textParis/xsl:text

/fo:block

/fo:table-cell
   

Re: stykesheet attribute version

2002-06-11 Thread Peter Jacobs
ok, i'll try one more time, but this really has little to do with FOP. 
Did you check the xalan-dev archive?
http://marc.theaimsgroup.com/?l=xalan-dev

Maybe the problem is in setNamespaceAware


while(li.hasNext()){
try {
String key = (String)li.next();
if (key.endsWith(_XSL)){
DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
dbf.setNamespaceAware(true);
Don't you have to switch these last 2 lines?
Peter


Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

i tried it again with both ways still get the exeption...

but thanks anyway, and i'm sorry that i brought it up here, but you guyz
are the only ones that really care and really help

greets
Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



font half sizes

2002-06-11 Thread Bill Collins
I'm working on a project that requires duplicating a form exacty with FOP.
The problem is the original PDF was created using Word and they used half
point sizes (e.g., 7.5pt) and then converted to PDF through Acrobat. It
appears that FOP only supports full point sizes (e.g., either 7pt or 8pt).
Is this ture? If so, Does anyone know a work around for this?

Thanks, Bill



Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
Oleg, here is the file (copy and pasted it...)
Looks good :( Debug your code and if the exception occurs in
transForm = transFactory.newTransformer(new DOMSource ...
try to ask on your xslt processor mail-list.
--
Oleg Tkachenko
Multiconn International Ltd, Israel


RE: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-11 Thread Vollmer, Thomas - CannonSA
Keiron wrote:
 I stand corrected.
 It does need to be a BooleanKey to work properly.

[...]

 Once I fixed that it doesn't work anymore anyway.
 
 I think various changes in batik mean that it needs
 to be handled differently.

Not sure what you mean by that. Why won't making it
a BooleanKey fix it?

Anyways, I guess my real question is: how can I have my
SVG text be not stroked when converted to PDF?
(is this a Batik question?)

Thanks!
-Thomas

 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
 



Re: External Graphic

2002-06-11 Thread J.Pietschmann
Urban, Patrick wrote:
Can anyone help me debug this. I am looking to simply pull a logo onto my
report with this code...
fo:external-graphic src=http://epndev0006/Logo_Plain.gif/
this error is being output from FOP...
[ERROR]: Error while creating area : Error with image URL:
http://epndev0006/Logo_Plain.gif and no base directory is specified.
The image is in the correct directory and everything is spelled correctly.
The image resides in the root of my wwwroot folder and I can hit it with a
browser by typing the above URL.
I experimented a bit and it seems the image cannot be loaded.
Check your IIS logs for the reason.
As for it showing up in a browser: Are the browser and FOP
running on the same machine? Are there proxies between your
machine and the server? Can you sucessfully retrieve the
image with a command line tool like wget?
And of course, there may lurk spelling problems, you should
cutpaste the URL into the browsers location field.
J.Pietschmann


Re: stykesheet attribute version

2002-06-11 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;
iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;.
 ^
Bad idea, remove it. Usually this jar contains ancient
and outdated JAXP stuff which interferes with the correct
code in xerces.jar.
J.Pietschmann


RE: External Graphic

2002-06-11 Thread Urban, Patrick
Thanks for the reply...It appears to be an issue with the URL referencing a
local machine within our network. It was probably some kind of proxy issue.
I have worked around it.
 
Thanks again

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: External Graphic


Urban, Patrick wrote:
 Can anyone help me debug this. I am looking to simply pull a logo onto my
 report with this code...
 
 fo:external-graphic src=http://epndev0006/Logo_Plain.gif/
 
 this error is being output from FOP...
 
 [ERROR]: Error while creating area : Error with image URL:
 http://epndev0006/Logo_Plain.gif and no base directory is specified.
 
 The image is in the correct directory and everything is spelled correctly.
 The image resides in the root of my wwwroot folder and I can hit it with a
 browser by typing the above URL.

I experimented a bit and it seems the image cannot be loaded.
Check your IIS logs for the reason.
As for it showing up in a browser: Are the browser and FOP
running on the same machine? Are there proxies between your
machine and the server? Can you sucessfully retrieve the
image with a command line tool like wget?
And of course, there may lurk spelling problems, you should
cutpaste the URL into the browsers location field.

J.Pietschmann


Re: External Graphic

2002-06-11 Thread Jeff_Mitchell

Patrick-

The server portion of the URL you're using looks like an NT name, or at
least a name in your default domain (TCP/IP, not NT)  If you're doing this
all on one machine (if you're running FOP on epndev0006), why not use a
relative path through the file structure (i.e. src=images/Logo_Plain.gif)
If you're running FOP on a different machine than IIS, perhaps the FOP box
can't resolve the name epndev006.

-Jeff



  
Urban, 
  
Patrick To: [EMAIL PROTECTED]  

Patrick_Urbacc:
  
[EMAIL PROTECTED]   Subject: External Graphic  
  

  
06/10/2002  
  
12:58 PM
  
Please  
  
respond to  
  
fop-user
  

  

  




Can anyone help me debug this. I am looking to simply pull a logo onto my
report with this code...

fo:external-graphic src=http://epndev0006/Logo_Plain.gif/

this error is being output from FOP...

[ERROR]: Error while creating area : Error with image URL:
http://epndev0006/Logo_Plain.gif and no base directory is specified.

The image is in the correct directory and everything is spelled correctly.
The image resides in the root of my wwwroot folder and I can hit it with a
browser by typing the above URL.

Thanks ,
Patrick






Re: font half sizes

2002-06-11 Thread J.Pietschmann
Bill Collins wrote:
I'm working on a project that requires duplicating a form exacty with FOP.
The problem is the original PDF was created using Word and they used half
point sizes (e.g., 7.5pt) and then converted to PDF through Acrobat. It
appears that FOP only supports full point sizes (e.g., either 7pt or 8pt).
Is this ture?
In general, yes. There are places where fractional point font
sizes are said to work, I believe bugzilla has a bug related
to it.
If so, Does anyone know a work around for this?
Try SVG. I believe it also can only use integer point sizes,
but I saw a post probably claiming that using 15pt and scaling
by 0.5 should work with SVG font stroking.
J.Pietschmann



Re: External Graphic

2002-06-11 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
If you're running FOP on a different machine than IIS, perhaps the FOP box
can't resolve the name epndev006.
This would give
 [ERROR]: Error while creating area : Error with image URL:
  epndev0006 and no base directory is specified.
(small, but importsnt diffference)
J.Pietschmann


Re: External Graphic

2002-06-11 Thread Jeff_Mitchell

Ah, thanks for the clarification.  I've only been using relative paths, so
I have no experience with FOP and remote URLs.



  
J.Pietschman   
  
n   To: [EMAIL PROTECTED]  

[EMAIL PROTECTED]cc:   
   
oo.de   Subject: Re: External Graphic  
  

  
06/11/2002  
  
04:41 PM
  
Please  
  
respond to  
  
fop-user
  

  

  




[EMAIL PROTECTED] wrote:
 If you're running FOP on a different machine than IIS, perhaps the FOP
box
 can't resolve the name epndev006.

This would give
  [ERROR]: Error while creating area : Error with image URL:
   epndev0006 and no base directory is specified.

(small, but importsnt diffference)

J.Pietschmann







Possibility of converting from XML to PDF without the intermedia te stage of FO format

2002-06-11 Thread Jie Wang
Title: Possibility of  converting from XML to PDF without the intermediate stage of FO format





How to decrease the responding time of converting from XML to PDF ? Currently it took me about 2 Mins to generate my 56 page PDF from XML files. Is that possible to convert from XML to PDF without the intermediate stage of FO format ? 


Thanks,
Jie 




-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: FOP error with xsl:copy-of .../



There are no chapter_title or sub formatting objects in xsl-fo, you have to 
transform it in xslt to fo objects, like fo:inline rather than just copying 
them to the fo.


[EMAIL PROTECTED] wrote:
 Hi,
 
 I am attaching the test xsl,xml and the java files. The problem is that the description of any node could have tags and text mixed. If I use xsl:value-of (with FOP), I get only

 the text and when I use xsl:copy-of (without FOP embeded), I get the desired result, but with FOP I am getting 'error 10231' I have tried everything that I could think of and could not come up with the correct stylesheet. 

 I truly could use your help
 I am anxiously waiting for a solution.
 
 Thank you so much in advance.
 Norm
 
 --- ERROR -
 ERROR 10231 [fop ] (): Unknown formatting object null^chapter_title
 Exception in thread main org.apache.fop.apps.FOPException: java.lang.NullPoin
 erException
 at org.apache.fop.apps.Driver.render(Driver.java:486)
 at test1.main(test1.java:102)
 
  test.xml --
 ?xml version=1.0 encoding=iso-8859-1?
 ?xml-stylesheet type='text/xsl' href=''?
 document id=DOCUMENT 810-005_103
 chapter id=test
 chapter_titleTesting Chapter sub3/sub/chapter_title 
 /chapter
 /document
 
 -- test.xsl ---
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format
 xsl:template match=document
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format 
 fo:layout-master-set
 fo:simple-page-master page-width=200mm master-name=Page1 page-height=280mm
 margin-top=10mm margin-bottom=10mm margin-left=20mm margin-right=20mm
 fo:region-body margin-top=0mm margin-bottom=10mm
 margin-left=0mm margin-right=0mm/
 /fo:simple-page-master
 fo:page-sequence-master master-name=PS1
 fo:single-page-master-reference master-name=Page1/
 /fo:page-sequence-master 
 /fo:layout-master-set
 
 fo:page-sequence master-reference=Page1
 fo:flow flow-name=xsl-region-body 
 xsl:apply-templates/
 /fo:flow 
 /fo:page-sequence  
 /fo:root
 /xsl:template
 
 xsl:template match=document/chapter/chapter_title
 fo:block space-after=3mm font-size=14pt text-align=center break-before=page
 break-after=page
 xsl:copy-of select=./
 /fo:block
 /xsl:template
 /xsl:stylesheet
 
 --- test.java file just the main()
 public static void main () { 
 
 File xmlFile=new File(test.xml);
 File xslFile=new File(test.xsl);
 File pdfFile=new File(test.pdf);
 
 Logger log = null;
 
 if(log == null) {
 Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
 log = hierarchy.getLoggerFor(fop);
 log.setPriority(Priority.WARN);
 }
 FileOutputStream OutFile = new FileOutputStream(pdfFile);
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 Driver driver=new Driver();
 
 driver.setLogger(log);
 driver.setRenderer(Driver.RENDER_PDF);
 InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
 XMLReader p=ih.getParser();
 driver.setOutputStream(OutFile);
 driver.render(p, ih.getInputSource());
 OutFile.close();
 }
 }//main
 
 
 __
 Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/

 
 Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
 




-- 
Oleg Tkachenko
Multiconn International, Israel






RE: Possibility of converting from XML to PDF without the interme dia te stage of FO format

2002-06-11 Thread Savino, Matt C
If performance is everything, you might look into some of the proprietary
PDF engines like faceless.org. But either way I believe you're still going
to have to convert your raw xml into something marked up for display, then
feed it to the PDF generator. 
 
Does anyone have any experieince with faceless compared to FOP
performance-wise?
 
Matt 
 

-Original Message-
From: Jie Wang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 2:31 PM
To: '[EMAIL PROTECTED]'
Subject: Possibility of converting from XML to PDF without the intermedia te
stage of FO format



How to decrease the responding time of converting from XML to PDF ?
Currently it took me about 2 Mins to generate my 56 page PDF from XML files.
Is that possible to convert from XML to PDF without the intermediate stage
of FO format ? 


Thanks, 
Jie 



-Original Message- 
From: Oleg Tkachenko [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] 
Sent: Tuesday, June 04, 2002 11:47 AM 
To: [EMAIL PROTECTED] 
Subject: Re: FOP error with xsl:copy-of .../ 


There are no chapter_title or sub formatting objects in xsl-fo, you have to 
transform it in xslt to fo objects, like fo:inline rather than just
copying 
them to the fo. 

[EMAIL PROTECTED] wrote: 
   Hi, 
 
   I am attaching the test xsl,xml and the java files.  The problem is that
the description of any node could have tags and text mixed.  If I use
xsl:value-of (with FOP), I get only

   the text and when I use xsl:copy-of (without FOP embeded), I get the
desired result, but with FOP I am getting 'error 10231'   I have tried
everything that I could think of and could not come up with the correct
stylesheet.  

   I truly could use your help 
   I am anxiously waiting for a solution. 
 
   Thank you so much in advance. 
   Norm 
 
   --- ERROR - 
   ERROR   10231   [fop ] (): Unknown formatting object
null^chapter_title 
   Exception in thread main org.apache.fop.apps.FOPException:
java.lang.NullPoin 
   erException 
  at org.apache.fop.apps.Driver.render(Driver.java:486) 
  at test1.main(test1.java:102) 
 
    test.xml -- 
   ?xml version=1.0 encoding=iso-8859-1? 
   ?xml-stylesheet type='text/xsl' href='test.xsl'? 
   document id=DOCUMENT 810-005_103 
  chapter id=test 
  chapter_titleTesting Chapter sub3/sub/chapter_title

  /chapter 
   /document 
 
   --  test.xsl --- 
   xsl:stylesheet xmlns:xsl= http://www.w3.org/1999/XSL/Transform
http://www.w3.org/1999/XSL/Transform  version=1.0 
   xmlns:fo= http://www.w3.org/1999/XSL/Format
http://www.w3.org/1999/XSL/Format  
 xsl:template match=document 
  fo:root xmlns:fo= http://www.w3.org/1999/XSL/Format
http://www.w3.org/1999/XSL/Format   
fo:layout-master-set 
  fo:simple-page-master page-width=200mm master-name=Page1
page-height=280mm 
   margin-top=10mm margin-bottom=10mm margin-left=20mm
margin-right=20mm 
fo:region-body margin-top=0mm margin-bottom=10mm 
 margin-left=0mm margin-right=0mm/ 
  /fo:simple-page-master 
  fo:page-sequence-master master-name=PS1 
fo:single-page-master-reference master-name=Page1/ 
  /fo:page-sequence-master  
/fo:layout-master-set 

fo:page-sequence  master-reference=Page1 
  fo:flow  flow-name=xsl-region-body 
   xsl:apply-templates/ 
  /fo:flow  
/fo:page-sequence   
  /fo:root 
/xsl:template 

   xsl:template match=document/chapter/chapter_title 
  fo:block space-after=3mm font-size=14pt text-align=center
break-before=page 
   break-after=page 
xsl:copy-of select=./ 
   /fo:block 
 /xsl:template 
   /xsl:stylesheet 
 
   --- test.java file just the main() 
   public static void main () {
 
  File xmlFile=new File(test.xml); 
  File xslFile=new File(test.xsl); 
  File pdfFile=new File(test.pdf); 
 
  Logger log = null; 
 
if(log == null) { 
  Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); 
  log = hierarchy.getLoggerFor(fop); 
  log.setPriority(Priority.WARN); 
} 
  FileOutputStream OutFile = new
FileOutputStream(pdfFile); 
  ByteArrayOutputStream out = new
ByteArrayOutputStream(); 
  Driver driver=new Driver(); 
  
  driver.setLogger(log); 
  driver.setRenderer(Driver.RENDER_PDF); 
  InputHandler ih=new
XSLTInputHandler(xmlFile,xslFile); 
  XMLReader p=ih.getParser(); 
  driver.setOutputStream(OutFile); 
  driver.render(p, ih.getInputSource()); 
  OutFile.close(); 
   

Control of long words inside a table cell

2002-06-11 Thread pkrishnaswami
We are using FOP to publish our documents in PDF. Some of the contents in
the table cell contain long words; eg: full name of java classes where the
length of the package is wider than the cell\column width; The contents of
these long words spills beyond the table cell.  Is there a way to wrap the
word if it reaches the end of the table cell.

Here is a snippet of the XSLFO we use for transforming the XML file:

 fo:table-body line-height=12pt font-size=10pt
font-family=Times-Roman
   space-before.optimum=6pt
fo:table-row
 fo:table-cell
  fo:block text-align=start  border-style=solid
border-width=.1mm
xsl:value-of select=./logMessage/.
/fo:block
/fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

In the above case, the value of select ./logMessage happens to be one word
where the word length is longer than the table-cell width.

Response will be appreciated.

Thanks.
Prabhakar




Re: Control of long words inside a table cell

2002-06-11 Thread Chuck Paussa
Use fo:table-cell wrap-option=wrap
Chuck
pkrishnaswami wrote:
We are using FOP to publish our documents in PDF. Some of the contents in
the table cell contain long words; eg: full name of java classes where the
length of the package is wider than the cell\column width; The contents of
these long words spills beyond the table cell.  Is there a way to wrap the
word if it reaches the end of the table cell.
Here is a snippet of the XSLFO we use for transforming the XML file:
fo:table-body line-height=12pt font-size=10pt
font-family=Times-Roman
  space-before.optimum=6pt
   fo:table-row
fo:table-cell
  fo:block text-align=start  border-style=solid
border-width=.1mm
   xsl:value-of select=./logMessage/.
/fo:block
/fo:table-cell
/fo:table-row
 /fo:table-body
   /fo:table
In the above case, the value of select ./logMessage happens to be one word
where the word length is longer than the table-cell width.
Response will be appreciated.
Thanks.
Prabhakar
 





RE: Possibility of converting from XML to PDF without theinterme dia te stage of FO format

2002-06-11 Thread Buonincontri, Steve (CAP, MMF, ITSS)
You might want to check out the adobe sight I think they might have somehting 
in the works.

-Original Message-
From: Savino, Matt C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 5:40 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Possibility of converting from XML to PDF without
theinterme dia te stage of FO format


If performance is everything, you might look into some of the proprietary
PDF engines like faceless.org. But either way I believe you're still going
to have to convert your raw xml into something marked up for display, then
feed it to the PDF generator. 
 
Does anyone have any experieince with faceless compared to FOP
performance-wise?
 
Matt 
 

-Original Message-
From: Jie Wang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 2:31 PM
To: '[EMAIL PROTECTED]'
Subject: Possibility of converting from XML to PDF without the intermedia te
stage of FO format



How to decrease the responding time of converting from XML to PDF ?
Currently it took me about 2 Mins to generate my 56 page PDF from XML files.
Is that possible to convert from XML to PDF without the intermediate stage
of FO format ? 


Thanks, 
Jie 



-Original Message- 
From: Oleg Tkachenko [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] 
Sent: Tuesday, June 04, 2002 11:47 AM 
To: [EMAIL PROTECTED] 
Subject: Re: FOP error with xsl:copy-of .../ 


There are no chapter_title or sub formatting objects in xsl-fo, you have to 
transform it in xslt to fo objects, like fo:inline rather than just
copying 
them to the fo. 

[EMAIL PROTECTED] wrote: 
   Hi, 
 
   I am attaching the test xsl,xml and the java files.  The problem is that
the description of any node could have tags and text mixed.  If I use
xsl:value-of (with FOP), I get only

   the text and when I use xsl:copy-of (without FOP embeded), I get the
desired result, but with FOP I am getting 'error 10231'   I have tried
everything that I could think of and could not come up with the correct
stylesheet.  

   I truly could use your help 
   I am anxiously waiting for a solution. 
 
   Thank you so much in advance. 
   Norm 
 
   --- ERROR - 
   ERROR   10231   [fop ] (): Unknown formatting object
null^chapter_title 
   Exception in thread main org.apache.fop.apps.FOPException:
java.lang.NullPoin 
   erException 
  at org.apache.fop.apps.Driver.render(Driver.java:486) 
  at test1.main(test1.java:102) 
 
    test.xml -- 
   ?xml version=1.0 encoding=iso-8859-1? 
   ?xml-stylesheet type='text/xsl' href='test.xsl'? 
   document id=DOCUMENT 810-005_103 
  chapter id=test 
  chapter_titleTesting Chapter sub3/sub/chapter_title

  /chapter 
   /document 
 
   --  test.xsl --- 
   xsl:stylesheet xmlns:xsl= http://www.w3.org/1999/XSL/Transform
http://www.w3.org/1999/XSL/Transform  version=1.0 
   xmlns:fo= http://www.w3.org/1999/XSL/Format
http://www.w3.org/1999/XSL/Format  
 xsl:template match=document 
  fo:root xmlns:fo= http://www.w3.org/1999/XSL/Format
http://www.w3.org/1999/XSL/Format   
fo:layout-master-set 
  fo:simple-page-master page-width=200mm master-name=Page1
page-height=280mm 
   margin-top=10mm margin-bottom=10mm margin-left=20mm
margin-right=20mm 
fo:region-body margin-top=0mm margin-bottom=10mm 
 margin-left=0mm margin-right=0mm/ 
  /fo:simple-page-master 
  fo:page-sequence-master master-name=PS1 
fo:single-page-master-reference master-name=Page1/ 
  /fo:page-sequence-master  
/fo:layout-master-set 

fo:page-sequence  master-reference=Page1 
  fo:flow  flow-name=xsl-region-body 
   xsl:apply-templates/ 
  /fo:flow  
/fo:page-sequence   
  /fo:root 
/xsl:template 

   xsl:template match=document/chapter/chapter_title 
  fo:block space-after=3mm font-size=14pt text-align=center
break-before=page 
   break-after=page 
xsl:copy-of select=./ 
   /fo:block 
 /xsl:template 
   /xsl:stylesheet 
 
   --- test.java file just the main() 
   public static void main () {
 
  File xmlFile=new File(test.xml); 
  File xslFile=new File(test.xsl); 
  File pdfFile=new File(test.pdf); 
 
  Logger log = null; 
 
if(log == null) { 
  Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); 
  log = hierarchy.getLoggerFor(fop); 
  log.setPriority(Priority.WARN); 
} 
  FileOutputStream OutFile = new
FileOutputStream(pdfFile); 
  ByteArrayOutputStream out = new
ByteArrayOutputStream(); 
  Driver driver=new Driver(); 
  
  driver.setLogger(log); 
  

RE: Possibility of converting from XML to PDF without the intermediate stage of FO format

2002-06-11 Thread Buonincontri, Steve (CAP, MMF, ITSS)
Title: Possibility of converting from XML to PDF without the intermediate stage of FO format



Just 
curious - what are the sizes of the XML, FO and PDF files?


  -Original Message-From: Jie Wang 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 11, 2002 5:31 
  PMTo: '[EMAIL PROTECTED]'Subject: Possibility of 
  converting from XML to PDF without the intermediate stage of FO 
  format
  How to decrease the responding time of converting from XML to 
  PDF ? Currently it took me about 2 Mins to generate my 56 page PDF from XML 
  files. Is that possible to convert from XML to PDF without the intermediate 
  stage of FO format ? 
  Thanks, Jie 
  -Original Message- From: Oleg 
  Tkachenko [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, June 04, 2002 11:47 AM To: [EMAIL PROTECTED] Subject: Re: FOP 
  error with xsl:copy-of .../ 
  There are no chapter_title or sub formatting objects in 
  xsl-fo, you have to transform it in xslt to fo 
  objects, like fo:inline rather than just copying them to the fo. 
  [EMAIL PROTECTED] wrote:  Hi,   I am attaching the test xsl,xml and the java 
  files. The problem is that the description of any node could have tags 
  and text mixed. If I use xsl:value-of (with FOP), I get 
  only
   the text and when I use xsl:copy-of 
  (without FOP embeded), I get the desired result, but with FOP I am getting 
  'error 10231' I have tried everything that I could think of and 
  could not come up with the correct stylesheet. 
   I truly could use your help 
   I am anxiously waiting for a 
  solution.   Thank you so much in advance.  Norm   --- ERROR -  ERROR 10231 
  [fop ] (): Unknown formatting object 
  null^chapter_title  Exception in 
  thread "main" org.apache.fop.apps.FOPException: java.lang.NullPoin 
   erException  at 
  org.apache.fop.apps.Driver.render(Driver.java:486)  at 
  test1.main(test1.java:102)    test.xml 
  --  
  ?xml version="1.0" encoding="iso-8859-1"?  ?xml-stylesheet type='text/xsl' 
  href=''?  document 
  id="DOCUMENT 810-005_103"  chapter id="test" 
   
  chapter_titleTesting Chapter 
  sub3/sub/chapter_title 
   
  /chapter  
  /document   -- test.xsl 
  ---  
  xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"  xmlns:fo="http://www.w3.org/1999/XSL/Format" 
   xsl:template 
  match="document"  fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
   
  fo:layout-master-set  
  fo:simple-page-master page-width="200mm" master-name="Page1" 
  page-height="280mm"  margin-top="10mm" 
  margin-bottom="10mm" margin-left="20mm" margin-right="20mm" 
   
  fo:region-body margin-top="0mm" margin-bottom="10mm"  
  margin-left="0mm" margin-right="0mm"/  
  /fo:simple-page-master  
  fo:page-sequence-master master-name="PS1"  
  fo:single-page-master-reference master-name="Page1"/  
  /fo:page-sequence-master 
   
  /fo:layout-master-set   
  fo:page-sequence master-reference="Page1"  
  fo:flow flow-name="xsl-region-body"  
  xsl:apply-templates/  /fo:flow 

  /fo:page-sequence   /fo:root  /xsl:template   
  xsl:template match="document/chapter/chapter_title"  fo:block 
  space-after="3mm" font-size="14pt" text-align="center" 
  break-before="page"  
  break-after="page"  
  xsl:copy-of select="."/  
  /fo:block  
  /xsl:template  
  /xsl:stylesheet   --- test.java file just the 
  main()  public static 
  void main () {   
  File xmlFile=new File("test.xml");  
  File xslFile=new File("test.xsl");  
  File pdfFile=new File("test.pdf");  
   
  Logger log = null;   
  if(log == null) {  
  Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();  
  log = hierarchy.getLoggerFor("fop");  
  log.setPriority(Priority.WARN);  
  }  
  FileOutputStream OutFile = new FileOutputStream(pdfFile);  
  ByteArrayOutputStream out = new ByteArrayOutputStream();  
  Driver driver=new Driver();  
   
  driver.setLogger(log);  
  driver.setRenderer(Driver.RENDER_PDF);  
  InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);  
  XMLReader p=ih.getParser();  
  driver.setOutputStream(OutFile);  
  driver.render(p, ih.getInputSource());  
  OutFile.close();  
  }  }//main 
 
  __ 
   Your favorite stores, helpful shopping tools and great 
  gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/
Get your own FREE, personal 
  Netscape Mail account today at http://webmail.netscape.com/ 
   
  -- Oleg Tkachenko Multiconn International, Israel 


RE: Possibility of converting from XML to PDF without the intermediate stage of FO format

2002-06-11 Thread Buonincontri, Steve (CAP, MMF, ITSS)
Title: Possibility of converting from XML to PDF without the intermediate stage of FO format



I have 
also noticed that doing the XML to FO to PDF in memory as opposed to writing to 
disk reduces time by about 80% in the samples that I tried.

I was 
using iTEXT, XEP, FOP, RTF2FO etc. 

Below 
you say that a 56 page PDF from XML files takes about 2 minutes. That sounds 
really good - I was working with 2 pages and 2 XML files generating FO doing an 
XSLT transform to merge and coverting to PDF and that was taking me about 1.5 
minutes on a 333MHZ machine.

I was 
just curoius what the total sizes of the XML, the FOs and the PDF were. Did you 
concate the FOs? how did you get a single PDF (what tool)?

steveb

  -Original Message-From: Jie Wang 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 11, 2002 6:37 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: Possibility 
  of converting from XML to PDF without the intermediate stage of FO 
  format
  The 
  size of xml file is 330K. 
  
-Original Message-From: Buonincontri, Steve (CAP, 
MMF, ITSS) [mailto:[EMAIL PROTECTED]Sent: 
Tuesday, June 11, 2002 3:37 PMTo: 
[EMAIL PROTECTED]Subject: RE: Possibility of converting 
from XML to PDF without the intermediate stage of FO 
format
Just curious - what are the sizes of the XML, FO 
and PDF files?


  -Original Message-From: Jie Wang 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 11, 2002 5:31 
  PMTo: '[EMAIL PROTECTED]'Subject: Possibility 
  of converting from XML to PDF without the intermediate stage of FO 
  format
  How to decrease the responding time of converting from XML 
  to PDF ? Currently it took me about 2 Mins to generate my 56 page PDF from 
  XML files. Is that possible to convert from XML to PDF without the 
  intermediate stage of FO format ? 
  Thanks, Jie 
  -Original Message- From: 
  Oleg Tkachenko [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, June 04, 2002 11:47 AM To: [EMAIL PROTECTED] Subject: Re: 
  FOP error with xsl:copy-of .../ 
  There are no chapter_title or sub formatting objects in 
  xsl-fo, you have to transform it in xslt to fo 
  objects, like fo:inline rather than just copying them to the fo. 
  [EMAIL PROTECTED] wrote:  Hi,   I am attaching the test xsl,xml and the java 
  files. The problem is that the description of any node could have 
  tags and text mixed. If I use xsl:value-of (with FOP), I get 
  only
   the text and when I use 
  xsl:copy-of (without FOP embeded), I get the desired result, but 
  with FOP I am getting 'error 10231' I have tried everything 
  that I could think of and could not come up with the correct 
  stylesheet. 
   I truly could use your help 
   I am anxiously waiting for a 
  solution.   Thank you so much in advance.  Norm   --- ERROR -  ERROR 10231 
  [fop ] (): Unknown formatting object 
  null^chapter_title  Exception in 
  thread "main" org.apache.fop.apps.FOPException: java.lang.NullPoin 
   erException  at 
  org.apache.fop.apps.Driver.render(Driver.java:486)  at 
  test1.main(test1.java:102)    test.xml 
  --  ?xml version="1.0" 
  encoding="iso-8859-1"?  
  ?xml-stylesheet type='text/xsl' href=''?  document id="DOCUMENT 810-005_103" 
   chapter 
  id="test"  
  chapter_titleTesting Chapter 
  sub3/sub/chapter_title 
   
  /chapter  
  /document   -- test.xsl 
  ---  
  xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"  xmlns:fo="http://www.w3.org/1999/XSL/Format" 
   xsl:template 
  match="document"  fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
   
  fo:layout-master-set  
  fo:simple-page-master page-width="200mm" master-name="Page1" 
  page-height="280mm"  
  margin-top="10mm" margin-bottom="10mm" margin-left="20mm" 
  margin-right="20mm"  
  fo:region-body margin-top="0mm" margin-bottom="10mm"  
  margin-left="0mm" margin-right="0mm"/  
  /fo:simple-page-master  
  fo:page-sequence-master master-name="PS1"  
  fo:single-page-master-reference master-name="Page1"/ 
   
  /fo:page-sequence-master 
   
  /fo:layout-master-set   
  fo:page-sequence master-reference="Page1"  
  fo:flow flow-name="xsl-region-body"  
  xsl:apply-templates/  
  /fo:flow   
  /fo:page-sequence   /fo:root 
   /xsl:template 
xsl:template 
  match="document/chapter/chapter_title"  
  fo:block space-after="3mm" font-size="14pt" text-align="center" 
  break-before="page"  
  break-after="page"  
  xsl:copy-of select="."/  
  /fo:block  
  /xsl:template  
  /xsl:stylesheet   --- test.java file just the 
  main() 

RE: Control of long words inside a table cell

2002-06-11 Thread Roland Neilands
 Use fo:table-cell wrap-option=wrap
 Thanks for the response; I tried this option but I did not
 see a difference;
 the text continues to over-flow the table cell width.

I saw this when testing too. Any whitespace would cause the cell contents to
wrap though. You could search the examples and/or archive for solutions
involving either hyphenation or inserting zero length whitespace at set
points.

Regards,
Roland