RE: Reading XML from JAR.

2002-11-27 Thread Dang Minh Phuong
I have faced this problem before. I think this link is useful for you

http://www.javaworld.com/javaworld/javatips/jw-javatip49.html


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



Unknown Fromatting Object null^null

2002-11-27 Thread Matthias Kräuter
Hello,
my old problem still exists. The stacktrace now shows line numbers but I 
don´t think it helps very much. I tried newer versions of Xalan (2.4D1) 
and Xerces (2.1.0) but nothing changed. My supplied Document  is not 
read from file but a transformation result in memory. I than inserted a 
document fragment with an fo:table into it with database data. Could 
there be a problem with the namespace of this  fragment?

The stacktrace:
[reports] [ERROR] Unknown formatting object null^null
UILD FAILED
ava.lang.NullPointerException
  at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
  at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
  at org.apache.fop.apps.Driver.render(Driver.java:469)
  at org.apache.fop.apps.Driver.render(Driver.java:489)
  at cmp.Report.execute(Report.java:581)
  at org.apache.tools.ant.Task.perform(Task.java:317)
  at org.apache.tools.ant.Target.execute(Target.java:309)
  at org.apache.tools.ant.Target.performTasks(Target.java:334)
  at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
  at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
  at org.apache.tools.ant.Main.runBuild(Main.java:610)
  at org.apache.tools.ant.Main.start(Main.java:196)
  at org.apache.tools.ant.Main.main(Main.java:235)

My source code looks like that:
Driver driver = new Driver();
driver.setRenderer(driver.RENDER_PDF);
   File pdfFile = new File(report.pdf);
   driver.setOutputStream(new FileOutputStream(pdfFile));
   driver.render(pdfDoc);
   driver.run();
pdfDoc is a DOM Document.
My .fo Document with the inserted table:
?xml version=1.0 encoding=UTF-8 standalone=no?
   fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   ...
   fo:table
   fo:table-column 
column-width=proportional-column-width(1)/
   fo:table-column 
column-width=proportional-column-width(1)/
   fo:table-column 
column-width=proportional-column-width(1)/
   fo:table-column 
column-width=proportional-column-width(1)/
   fo:table-column 
column-width=proportional-column-width(1)/
   fo:table-header
   ...
   /fo:table
...
 /fo:root


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


Unknown formatting object null^null ... again

2002-11-27 Thread Matthias Kräuter
Hello,

my old problem still exists. The stacktrace now shows line numbers but I
don#180;t think it helps very much. I tried newer versions of Xalan (2.4D1)
and Xerces (2.1.0) but nothing changed. 

My supplied Document  is not read from file but is a transformation result
I#180;m holding in memory. I than inserted a document fragment with an
fo:table into it with database data. Could there be a problem with the
namespaces in this  fragment?

The stacktrace:

[reports] [ERROR] Unknown formatting object null^null

UILD FAILED
ava.lang.NullPointerException
  at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
  at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
  at org.apache.fop.apps.Driver.render(Driver.java:469)
  at org.apache.fop.apps.Driver.render(Driver.java:489)
  at cmp.Report.execute(Report.java:581)
  at org.apache.tools.ant.Task.perform(Task.java:317)
  at org.apache.tools.ant.Target.execute(Target.java:309)
  at org.apache.tools.ant.Target.performTasks(Target.java:334)
  at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
  at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
  at org.apache.tools.ant.Main.runBuild(Main.java:610)
  at org.apache.tools.ant.Main.start(Main.java:196)
  at org.apache.tools.ant.Main.main(Main.java:235)

My source code looks like that:
Driver driver = new Driver();
driver.setRenderer(driver.RENDER_PDF);

   File pdfFile = new File(report.pdf);
   driver.setOutputStream(new FileOutputStream(pdfFile));

   driver.render(pdfDoc);

   driver.run();

pdfDoc is a DOM Document.

My .fo Document with the inserted table:

?xml version=1.0 encoding=UTF-8 standalone=no?
   fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   ...
   fo:table
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-header
   ...
   /fo:table
...
 /fo:root

Can anybody give me a hint on that?

Thanks a lot
Matthias

-- 
-- 

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



set dpi for the result pdf?

2002-11-27 Thread Christian
Hi.
Is it possible to set the dpi of the result PDF File in the next version 
of FOP?

*
Create a fop.xconf file in the xml-fop/conf/ directory
and write:
userAgent
base url=.//
pixelToMillimeter value=0./
/userAgent
Is this all what I have to do?
Christian

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


Unknown formatting object null^null ...again

2002-11-27 Thread Matthias Kräuter
Hello,
my old problem still exists. The stacktrace now shows line numbers but I 
don´t think it helps very much. I tried newer versions of Xalan (2.4D1) 
and Xerces (2.1.0) but nothing changed. My supplied Document  is not 
read from file but is a transformation result in memory. I than inserted 
a document fragment with an fo:table-element  into it with database 
data. Could there be a problem with the namespace of this  fragment?

The stacktrace:
[reports] [ERROR] Unknown formatting object null^null
UILD FAILED
ava.lang.NullPointerException
 at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
 at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
 at org.apache.fop.apps.Driver.render(Driver.java:469)
 at org.apache.fop.apps.Driver.render(Driver.java:489)
 at cmp.Report.execute(Report.java:581)
 at org.apache.tools.ant.Task.perform(Task.java:317)
 at org.apache.tools.ant.Target.execute(Target.java:309)
 at org.apache.tools.ant.Target.performTasks(Target.java:334)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
 at org.apache.tools.ant.Main.runBuild(Main.java:610)
 at org.apache.tools.ant.Main.start(Main.java:196)
 at org.apache.tools.ant.Main.main(Main.java:235)

My source code looks like that:
   Driver driver = new Driver();
   driver.setRenderer(driver.RENDER_PDF);
  File pdfFile = new File(report.pdf);
  driver.setOutputStream(new FileOutputStream(pdfFile));
  driver.render(pdfDoc);
  driver.run();
pdfDoc is a DOM Document.
My .fo Document with the inserted table:
?xml version=1.0 encoding=UTF-8 standalone=no?
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  ...
  fo:table
  fo:table-column 
column-width=proportional-column-width(1)/
  fo:table-column 
column-width=proportional-column-width(1)/
  fo:table-column 
column-width=proportional-column-width(1)/
  fo:table-column 
column-width=proportional-column-width(1)/
  fo:table-column 
column-width=proportional-column-width(1)/
  fo:table-header
  ...
  /fo:table
   ...
/fo:root

Thanks a lot for any help.
Matthias

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


Re: Unknown Fromatting Object null^null

2002-11-27 Thread Jeremias Maerki

On 27.11.2002 08:53:04 Matthias Kräuter wrote:
 Hello,
 
 my old problem still exists. The stacktrace now shows line numbers but I 
 don´t think it helps very much. I tried newer versions of Xalan (2.4D1) 
 and Xerces (2.1.0) but nothing changed. My supplied Document  is not 
 read from file but a transformation result in memory. I than inserted a 
 document fragment with an fo:table into it with database data. Could 
 there be a problem with the namespace of this  fragment?

Aha. You could be on the right track. Does it work if you don't include
the table from the database? (bugfinding using exclusion)

Do I get you right? You're generating an FO file as a DOM in some way
and then include a FO fragment built from database data in the DOM?
Isn't that a bit too awful to do? The basic FO file is generated from an
XML via XSLT? Have you tried to supply the DOM as parameter to the XSL
transformation?

Maybe Cocoon is something you should look at.

Your code below doesn't show how you construct the DOM and that's what's
most interesting here.

 The stacktrace:
 
  [reports] [ERROR] Unknown formatting object null^null
 
 UILD FAILED
 ava.lang.NullPointerException
at 
 org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:238)
at org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:444)
at org.apache.fop.apps.Driver.render(Driver.java:469)
at org.apache.fop.apps.Driver.render(Driver.java:489)
at cmp.Report.execute(Report.java:581)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
 
 My source code looks like that:
  Driver driver = new Driver();
  driver.setRenderer(driver.RENDER_PDF);
 
 File pdfFile = new File(report.pdf);
 driver.setOutputStream(new FileOutputStream(pdfFile));
 
 driver.render(pdfDoc);
 
 driver.run();
 
 pdfDoc is a DOM Document.



Jeremias Maerki


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



Re: set dpi for the result pdf?

2002-11-27 Thread Jeremias Maerki
You're looking at the redesign. It takes some time until a release will
come out of this development thread. The next version of FOP (0.20.5,
coming out of the maintenance branch in CVS) won't have that feature.
PDF itself doesn't have a dpi setting, it's just that images get
rescaled when including them. But FOP still doesn't support this and
won't in the near future.

On 27.11.2002 09:25:21 Christian wrote:
 Hi.
 
 Is it possible to set the dpi of the result PDF File in the next version 
 of FOP?
 
 *
 
 Create a fop.xconf file in the xml-fop/conf/ directory
 
 and write:
 
 userAgent
 base url=.//
 pixelToMillimeter value=0./
 /userAgent
 
 Is this all what I have to do?

No, this won't help you. This is a value for the mapping of pixels to
millimeter used by the SVG functionality. This isn't used to rescale
images, and that's surely what you want, right?


Jeremias Maerki


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



AW: UML diagrams for FOP

2002-11-27 Thread Ilja Preuss
 I think not. But what prevents you from
 loading fop sources into UML tool of your choice
 and reverse engineeer it?

A UML tool can't automatically layout and filter the diagram in a
meaningfull way - that needs a developer who is already familiar with the
code.

Regards, Ilja

--
++ wir optimieren Ihre Informations- und Kommunikationsprozesse ++
++ disy Cadenza: Informationsintegration am i*net Arbeitsplatz ++
++ disy conference: The easy way of audio conferencing ++
++ disy Call-Back Office: Call-Back-Buttons fur Kundenservice im Web ++

 Ilja Preu?  [EMAIL PROTECTED]
 disy Informationssysteme GmbH   http://www.disy.net
 Stephanienstr. 30   Tel: +49 721 1 600 624
 D-76133 Karlsruhe, Germany  Fax: +49 721 1 600 605

++ Weitere Informationen finden Sie unter http://www.disy.net ++


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



Re: Does anyone know how to extend elements in FOP

2002-11-27 Thread Jeremias Maerki
The best example for the maintenance branch is really the SVG support
because it's very close to what you want to do. In the redesign there's
the MathML example but the design is slightly different, I think.

Try to create a copy of SVGObj and adjust it to your needs (Same for
SVGElement and SVGElementMapping).  I think there's no need to directly
subclass FObj.  Between FOObj and SVGObj there's XMLObj which should be
the baseclass for your BarcodeObj.

Maybe it's really better (read simpler) if you looked for a solution
that gives you a bitmap from a barcode as suggested by others.

On 26.11.2002 23:55:10 Raffi Simon wrote:
 Can anyone help me? I have looked into the outline and label, but it
 does not help me, I have also tried looking into SVG, and it does not
 help me either, can anyone give me an exampl of which methods I need to
 override in the FObj etc...


Jeremias Maerki


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



block container

2002-11-27 Thread Brienen, SJP (Sander)
Hello all,

I am using the block container element to keep together a few blocks. But
when I generate my PDF nothing seems to display. Is this a problem of fop or
is it anything else?

Here is my code snippet:
  fo:block-container font-size=22pt
fo:blocktekst/fo:block
fo:blocktekst/fo:block
fo:blocktekst/fo:block
  /fo:block-container

regards
Sander Brienen



De informatie opgenomen in dit bericht kan vertrouwelijk zijn en 
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht 
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en 
de afzender direct te informeren door het bericht te retourneren. 

The information contained in this message may be confidential 
and is intended to be exclusively for the addressee. Should you 
receive this message unintentionally, please do not use the contents 
herein and notify the sender immediately by return e-mail.



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



Re: block container

2002-11-27 Thread Jeremias Maerki
Block-container with relative positioning as in your example is not
implemented, only absolute positioning. 

You can easily rewrite your code to:

   fo:block font-size=22pt
 fo:blocktekst/fo:block
 fo:blocktekst/fo:block
 fo:blocktekst/fo:block
   /fo:block-container
   
...which does the same.
   
On 27.11.2002 14:58:11 Brienen, SJP (Sander) wrote:
 Hello all,
 
 I am using the block container element to keep together a few blocks. But
 when I generate my PDF nothing seems to display. Is this a problem of fop or
 is it anything else?
 
 Here is my code snippet:
   fo:block-container font-size=22pt
 fo:blocktekst/fo:block
 fo:blocktekst/fo:block
 fo:blocktekst/fo:block
   /fo:block-container


Jeremias Maerki


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



automatic image scaling

2002-11-27 Thread Alexander Koppelhuber
In my fo file I have the following part:

fo:block-container width=118mm height=502px top=107mm
position=absolute 
fo:block
fo:external-graphic src=url('../img/martina.jpg')
content-height=auto content-width=auto/
  /fo:block
/fo:block-container

With this settings of the block-container everything works fine.
The image is larger in width an gets scaled correctly. However, if I
change the height parameter of the container to my desired value
no image will be rendered. The image is slightly larger than the needed
size of the container. It seems that automatic scaling of an image
only works if the height of the block container is the exact height of
the image. Other combinations (block.width = img.width +
block.heightimg.height ||
block.height/block.height  img.width/img.height) don't work, and no image
gets
rendered. Any workarounds for this bug (if it is one)?

This is not a big problem but a litte bit annoying, because part of the fo
file gets
generated by my application (different images can be used with varying
size).

Regards, Alex


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



Re: Writing to a file already open in another application

2002-11-27 Thread Noel Golding
If the pdf is launched in the IE browser, it does not lock the file.


- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 9:25 AM
Subject: Re: Writing to a file already open in another application


 You can't because Acrobat has an exclusive lock on the file. There's no
 way to release that lock other than to tell Acrobat to close the file
 either by closing the window with the mouse or by closing the file over
 OLE automation (not an easy task in Java).

 By the way, GhostScript doesn't lock the file when viewing it. It even
 reloads the file automatically when it's regenerated.

 On 27.11.2002 15:14:11 Illiano, Vincent wrote:
  Hi Fellow FOPers,
 
  I've run into a problem when generating pdf's with FOP.  When the target
pdf
  file is already open in Acrobat, or any other application for that
matter,
  FOP cannot regenerate the pdf file.  I see the following message in the
FOP
  console window (running fop.bat):
 
  java.io.FileNotFoundException:  output\histphys.pdf (The process cannot
  access the file because it is being used by another process)
  at java.io.FileOutputStream.open(Native Method)
  ...
 
  Does anybody know of a way to get FOP and Java to rewrite the file even
  though it's open in another app?  Thanks, -Vincent



 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]



Re: Writing to a file already open in another application

2002-11-27 Thread Jeremias Maerki
I thought so, yes.

On 27.11.2002 15:29:27 Illiano, Vincent wrote:
 Is Acrobat OLE-Automatable?  My controlling application is an MFC app, so I
 could easily establish an OLE connection to Acrobat if that's possible.


Jeremias Maerki


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



AW: Pass xsl:param value to FOP through command line

2002-11-27 Thread Scherler, Thorsten
Hello Clay,

You wrote:
Unfortunately, that's the smallest part of the problem I'm working with 
right now. My main problem is to determine how to implement the ODD/EVEN 
functionality correctly. I've finally gotten some headway with an ODD/EVEN, 
but it's still not working right. I'm only getting one EVEN page  
subsequent EVEN pages are outputting the ODD stuff on the EVEN page.
***

Ok, if you have two stylesheets, one of them should print a blank page after 
each odd page. The other should print the stream you pass as it is, that's 
right? Because we use the work around (we mentioned before.

Maybe this link will help you (search for: Page sequences)
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html

I will watching the list for your success ;-)

regards

-Ursprüngliche Nachricht-
Von: Clay Leeds [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 26. November 2002 22:26
An: [EMAIL PROTECTED]
Betreff: RE: Pass xsl:param value to FOP through command line


I use XML Spy to write the FO file itself. Then I use FOP to take XML input 
 XSL inputs to generate the output. My command line looks like this:

c:\Program Files\java\fop-0.20.4fop -d -xml C:\test_NYNF.xml -xsl 
C:\fo\2Page.fo -pdf C:\fo\2Page.pdf

This is the command .BAT file sends the system. I'd love to be able to pass 
a param at the end or something, but all I get are errors. Someone just 
mentioned an fop servlet in a recent message (I think they mentioned the 
\build\fop.jar file in the same breath), but I don't know yet how to 
leverage that. Since I think I have a viable workaround for the 2nd page 
(namely to have use XSL:IMPORT/INCLUDE) I don't know if that's necessary, 
anyway.

Unfortunately, that's the smallest part of the problem I'm working with 
right now. My main problem is to determine how to implement the ODD/EVEN 
functionality correctly. I've finally gotten some headway with an ODD/EVEN, 
but it's still not working right. I'm only getting one EVEN page  
subsequent EVEN pages are outputting the ODD stuff on the EVEN page.

:-\

At 12:37 PM 11/26/2002, you wrote:
Do you use XSLT to generate your FO file from XML data, or are you building
it some other way? I know you can pass properties to FOP through the command
line, but as far as something like don't print the second page, I imagine
that would have to be in your FO.

-Matt

  -Original Message-
  From: Clay Leeds [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 26, 2002 12:07 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Pass xsl:param value to FOP through command line
 
 
  Matt,
 
  Thanks. Actually, my .BAT file is calling _FOP_ through the
  command line.
  As for servlets, I don't think we are using them at all.
  Because all the
  examples I've seen discuss how to pass param values to
  servlets instead of
  how to pass them to FOP, I was stuck.
 
  However, Thorsten gave me a great workaround for the problem
  I was trying
  to resolve by passing a param to FOP. I still would like to
  know if there's
  a way to pass param  variable values through the command
  line, though.
 
  At 11:59 AM 11/26/2002, you wrote:
  Not sure exactly if your .BAT file is calling a Java app or
  something else,
  but here is how we set an external xsl:param within our
  report generator
  servlet:
  
 transformer.setParameter(pdfImagePath,
  
  getServletConfig().getServletContext().getAttribute(pdfImagePath));
  
  Then the xslt stylesheet access it like:
  
 xsl:param name=pdfImagePath /
  
  We use this to get the environment-dependent path to our
  image directory:
  
 fo:external-graphic
  src={concat($pdfImagePath,'ClinTrialLogoGreenBig.gif')} /
  
  But you could use the value of this param to make decisions
  within your
  stylesheet.
  
  Hope this helps.
  
  -Matt
  
-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 9:40 AM
To: [EMAIL PROTECTED]
Subject: Re: Pass xsl:param value to FOP through command line
   
   
Won't work. The .BAT is *not* for generating XML. It just
prints it. Our
primary app does the XML file generation.
   
Regards  stuff.
   
:-)
   
At 09:37 AM 11/26/2002, you wrote:
STOP!

I tought about something:
the .bat is for generating the the xml, right?
Then just do like you wanted: take an element call it
  e.g. rear/.
then if rear
rear1/rear
else
rear0/rear

 From there it is stylesheet work:
xsl:if test=rear=1Backpage/xsl:if
xsl:if test=rear=0front only/xsl:if

Regards

Clay Leeds wrote:
...
At 09:22 AM 11/26/2002, you wrote:

So I would store the information in that script. Then
  you need two
fop-Stylesheets. 1) with the rear page 2) without

As they say here in the United States... Well, duh!
That solves it for me. The only problem now, is that
  I'll have two
separate files to maintain. But then, if I 

AW: automatic image scaling

2002-11-27 Thread Alexander Koppelhuber
if block-container.height = img.height and block-container.width 
img.width then
the image gets scaled to the width of the block-containter (gets smaller);

if bloc-container.height = img.height and block-container.width =
img.width then
the image gets rendered according to the image size (no scaling is done)

if bloc-container.height  img.height then no image is rendered
no matter which values are used for width

content-width and content-height do not have any effect at all


I hope that this behaviour isn't just coincidence.

-Ursprüngliche Nachricht-
Von: Keiron Liddle [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 27. November 2002 15:31
An: [EMAIL PROTECTED]
Betreff: Re: automatic image scaling


On Wed, 2002-11-27 at 15:11, Alexander Koppelhuber wrote:
 In my fo file I have the following part:

 fo:block-container width=118mm height=502px top=107mm
 position=absolute 
   fo:block
   fo:external-graphic src=url('../img/martina.jpg')
 content-height=auto content-width=auto/
   /fo:block
 /fo:block-container

IIRC the content-width and content-height of auto means that it should
use the width and height of the image. It does not have an relation to
the surrounding block, that would be width=100% and height=100% I
think.
These things are not currently implemented.

 With this settings of the block-container everything works fine.
 The image is larger in width an gets scaled correctly. However, if I
 change the height parameter of the container to my desired value
 no image will be rendered. The image is slightly larger than the needed
 size of the container. It seems that automatic scaling of an image
 only works if the height of the block container is the exact height of
 the image. Other combinations (block.width = img.width +
 block.heightimg.height ||
 block.height/block.height  img.width/img.height) don't work, and no image
 gets
 rendered. Any workarounds for this bug (if it is one)?

I suspect that if it does not fit, ie. smaller than the block-container,
it will not display anything. Can you simply make the block-container
larger so it will fit all images.

If there is scaling happening then I'm not sure exactly what attributes
are making it work.

If you want all images to be the same size can you set the width and
height attributes to a pt value and will that work?

 This is not a big problem but a litte bit annoying, because part of the fo
 file gets
 generated by my application (different images can be used with varying
 size).

 Regards, Alex



-
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: set dpi for the result pdf?

2002-11-27 Thread Clay Leeds
I had problems with images myself. The text printed sharply, but the images 
were showing up pixelated, and I wanted cleaner pictures. The fix was to 
make the *images* 300dpi JPG files (I suspect it would be the same for 
another format like PNG). Once I changed to hi-resolution images, the 
documents looked great!

Start from a relatively large image (don't start from a small 72dpi image 
the same size as your output should be, or it won't work). In Photoshop, go 
to Image|Image Size, and change the DPI setting to 300 (you can experiment 
with this setting, but 300 worked for me). Then make certain your image 
dimensions are appropriate, and click OK. Save your JPG image and you're 
done! YOu might have to play a bit with the output format. I've found FOP 
to be a bit picky with some COMPRESSION, INTERLEAVE and other settings. If 
you have a problem, experiment!

Hope this helps!
Web Maestro Clay
At 12:25 AM 11/27/2002, you wrote:
Hi.
Is it possible to set the dpi of the result PDF File in the next version 
of FOP?

*
Create a fop.xconf file in the xml-fop/conf/ directory
and write:
userAgent
base url=.//
pixelToMillimeter value=0./
/userAgent
Is this all what I have to do?
Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


AW: Pass xsl:param value to FOP through command line

2002-11-27 Thread Scherler, Thorsten
Hello Clay, hi group,

Maybe this links will help you (search for: Page sequences)
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html


Howto fop insert blank page
http://www.xml.com/pub/a/2001/01/17/xsl-fo/?page=2

http://www.cs.uku.fi/~kilpelai/RDK01/refs/xsl-fo1.html

Hope that helps

I will watching the list for your success ;-)

Regards Thorsten

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten 
Gesendet: Mittwoch, 27. November 2002 16:08
An: [EMAIL PROTECTED]
Betreff: AW: Pass xsl:param value to FOP through command line


Hello Clay,

You wrote:
Unfortunately, that's the smallest part of the problem I'm working with 
right now. My main problem is to determine how to implement the ODD/EVEN 
functionality correctly. I've finally gotten some headway with an ODD/EVEN, 
but it's still not working right. I'm only getting one EVEN page  
subsequent EVEN pages are outputting the ODD stuff on the EVEN page.
***

Ok, if you have two stylesheets, one of them should print a blank page after 
each odd page. The other should print the stream you pass as it is, that's 
right? Because we use the work around (we mentioned before.

Maybe this link will help you (search for: Page sequences)
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html

I will watching the list for your success ;-)

regards

-Ursprüngliche Nachricht-
Von: Clay Leeds [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 26. November 2002 22:26
An: [EMAIL PROTECTED]
Betreff: RE: Pass xsl:param value to FOP through command line


I use XML Spy to write the FO file itself. Then I use FOP to take XML input 
 XSL inputs to generate the output. My command line looks like this:

c:\Program Files\java\fop-0.20.4fop -d -xml C:\test_NYNF.xml -xsl 
C:\fo\2Page.fo -pdf C:\fo\2Page.pdf

This is the command .BAT file sends the system. I'd love to be able to pass 
a param at the end or something, but all I get are errors. Someone just 
mentioned an fop servlet in a recent message (I think they mentioned the 
\build\fop.jar file in the same breath), but I don't know yet how to 
leverage that. Since I think I have a viable workaround for the 2nd page 
(namely to have use XSL:IMPORT/INCLUDE) I don't know if that's necessary, 
anyway.

Unfortunately, that's the smallest part of the problem I'm working with 
right now. My main problem is to determine how to implement the ODD/EVEN 
functionality correctly. I've finally gotten some headway with an ODD/EVEN, 
but it's still not working right. I'm only getting one EVEN page  
subsequent EVEN pages are outputting the ODD stuff on the EVEN page.

:-\

At 12:37 PM 11/26/2002, you wrote:
Do you use XSLT to generate your FO file from XML data, or are you building
it some other way? I know you can pass properties to FOP through the command
line, but as far as something like don't print the second page, I imagine
that would have to be in your FO.

-Matt

  -Original Message-
  From: Clay Leeds [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 26, 2002 12:07 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Pass xsl:param value to FOP through command line
 
 
  Matt,
 
  Thanks. Actually, my .BAT file is calling _FOP_ through the
  command line.
  As for servlets, I don't think we are using them at all.
  Because all the
  examples I've seen discuss how to pass param values to
  servlets instead of
  how to pass them to FOP, I was stuck.
 
  However, Thorsten gave me a great workaround for the problem
  I was trying
  to resolve by passing a param to FOP. I still would like to
  know if there's
  a way to pass param  variable values through the command
  line, though.
 
  At 11:59 AM 11/26/2002, you wrote:
  Not sure exactly if your .BAT file is calling a Java app or
  something else,
  but here is how we set an external xsl:param within our
  report generator
  servlet:
  
 transformer.setParameter(pdfImagePath,
  
  getServletConfig().getServletContext().getAttribute(pdfImagePath));
  
  Then the xslt stylesheet access it like:
  
 xsl:param name=pdfImagePath /
  
  We use this to get the environment-dependent path to our
  image directory:
  
 fo:external-graphic
  src={concat($pdfImagePath,'ClinTrialLogoGreenBig.gif')} /
  
  But you could use the value of this param to make decisions
  within your
  stylesheet.
  
  Hope this helps.
  
  -Matt
  
-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 9:40 AM
To: [EMAIL PROTECTED]
Subject: Re: Pass xsl:param value to FOP through command line
   
   
Won't work. The .BAT is *not* for generating XML. It just
prints it. Our
primary app does the XML file generation.
   
Regards  stuff.
   
:-)
   
At 09:37 AM 11/26/2002, you wrote:
STOP!

I tought about something:
the .bat is for generating the the xml, right?
Then just do like you wanted: take an element call it
  e.g. rear/.
then if rear

FOP 0.20.4 (NoClassDefFound)

2002-11-27 Thread Ken Teague
Hello.  I'm trying to use FOP to generate PDF/HTML/text files from XML using 
the XML Resume Library (xmlresume.sourceforge.net).  I was able to get HTML and 
TEXT output a la xalan but PDF output fails with the following error:

snip
[EMAIL PROTECTED]:~/resume/examples$ make
java org.apache.xalan.xslt.Process  -in resume.xml -xsl 
http://xmlresume.sourceforge.net/xsl/output/us-html.xsl -out resume.html

java org.apache.xalan.xslt.Process  -in resume.xml -xsl 
http://xmlresume.sourceforge.net/xsl/output/us-text.xsl -out resume.txt

java org.apache.fop.apps.Fop -fo  resume.fo -pdf resume.pdf
Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/avalon/framework/logger/Logger
at org.apache.fop.apps.Fop.main(Unknown Source)
make: *** [resume.pdf] Error 1
snip

I checked the FOP FAQ and found this error listed in the COMMON STUMBLING 
BLOCKS section.  It says the problem is most likely due to my classpath.  Up 
until yesterday, I didn't know what a classpath was.  I google searched for 
java classpath and found a somewhat decent article at 
http://www.kevinboone.com/classpath.html.  The problem is this article is 
geared towards a java developer.  Unfortunatly I've never wrote any java code 
in my life.  To learn a bunch about it now to understand how the classpath 
works is just too much at this time as I have to focus on looking for a job.  
Anyhow, based on the FAQ, it says to check the fop.sh script to ensure the 
.jar's are in the correct location.  I checked the shell script and it tries to 
look for FOP under /opt/fop then, if not found, under $HOME/opt/fop  ...

snip
if [ -z $FOP_HOME ] ; then
  # try to find FOP
  if [ -d /opt/fop ] ; then 
FOP_HOME=/opt/fop
  fi

  if [ -d ${HOME}/opt/fop ] ; then 
FOP_HOME=${HOME}/opt/fop
  fi
snip

My original FOP installation was to basically copy the fop.sh to /usr/local/bin 
and fop.jar to /usr/lib/j2se/1.3/jre/lib/ext (from now on referred to as 
$JAVA_EXT).  This is where I copied the .jar's for Xerces and xalan also.  
While looking for the location of $JAVA_EXT (before I copied the jar's over), I 
noticed /usr/lib/j2se/ext exists but nothing is in the directory.  I'm not sure 
if this is a Debian thing or a j2se thing that created that dir. but it's empty 
and I left it that way.  I also checked the Xerces and xalan Debian packages to 
see where they put the .jar's.  Debian places them in /usr/share/java so I 
copied the Xerces, xalan and FOP jar's there also.  At this point I'm able to 
use the XML Resume Library to create envoke xalan and output an XML to HTML and 
TEXT but the PDF generation fails when FOP is envoked.

After reading the FOP FAQ and checking the shell script, I created 
$HOME/opt/fop and copied fop.sh to that dir.  Still no dice.  I also copied the 
fop.jar to that same dir with no luck.  I also copied the org subdir which 
resides under the src dir in the source distribution of FOP (is it obvious I'm 
clueless about the classpath? :-) to $HOME/opt/fop with no luck.  I went as far 
as to copy the build dir to there also with no luck.  If I run fop.sh alone 
with no args, I get the same error so I'm sure it's a classpath problem.  The 
README.Debian I extracted from the Debian libfop-java package says this:

snip
libfop-java for Debian
--

  The classpath for fop have to include xalan2, bsf, svg, batik, jimi,
  and xerces jar files. See /usr/bin/fop for the full classpath needed.

  xalan2, bsf and xerces are part of debian, the other ones you have to
  find yourself and put in /usr/share/java.

  You can download the svg and batik library from
  http://xml.apache.org/batik/index.html.
  
  You have to find jimi yourself. I got it from the upstream source of
  fop.
snip

Which is very confusing to a non-java developer.  However, what is stated in 
here may be irrelevant because I've strated away from the Debian packages 
because they're older and failed to produce PDF output with a different error.  
I strayed away from the .deb's because I thought I may be having problems with 
slightly older versions of FOP, Xerces, and xalan Debian packages working with 
the XML Resume Library and used the latest versions to eleviate the problem.  
Any help on this matter would be greatly appreciated.  I need to find a job... 
SOON! :-)  Thanks everyone.

- Ken

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



Re: Want to contract a FOP stylesheet developer$$

2002-11-27 Thread Mark Bitz
Phillip,
My name is Mark Bitz and I was just wondering if you happen to find somebody
to help you with this. If you have not, please get back to me and we can
work something out.  I have been working with this FOP stuff for quite a
while 2+ years and have developed quite a few xsl:fo stylesheets. Thanks..
email me at [EMAIL PROTECTED]

Mark Bitz

- Original Message -
From: Phillip Rhodes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 7:46 AM
Subject: Want to contract a FOP stylesheet developer$$


 Sorry.  I am not a head hunter.  Not some big company, just an individual
 java developer.
 I got involved in a tough project for a client and I can't do
 everything.  I been working on this for two years!

 I am in need of someone that can develop an xml2fo.xsl stylesheet that
will
 transform my xml report into a beautify PDF document.
 I have personally done the xml2html.xsl stylesheet.

 Give me an estimate of time, how you want paid, your terms, etc...   I am
 bankrolling this personally from my full-time job to get this finished.

 Here is a link to a example html report, the xml file that contained the
 report content and the xsl stylesheet that transformed the xml into the
 html document there.

 Thanks.  I hope you don't mind the intrusion.

 The project is a health risk assessment.  Participants take a survey
 through jsurvey (a open sourced survey product soon to be released) and
 that data is imported and reports are generated.  I am using the velocity
 template engine to assemble the report content into a xml file.

 Here are the project samples:
 http://test.rhoderunner.com/hraproject/

 Contact me
 [EMAIL PROTECTED]

 Thanks!


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



Re: Font embending

2002-11-27 Thread Oleg Tkachenko
Nyári Gyõzõ wrote:
Another question:
'#' character replaces the 'õ' characters (and all iso-8859-2 specific
characters).
The font contains the characters, we used it already. 
Did you solve the problem?
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Odd, Even Last-odd Problem

2002-11-27 Thread Oleg Tkachenko
Clay Leeds wrote:
1. My EVEN page is not rendering every other page (EVEN pages). PROBLEM: 
It prints at the end of the document.
How much pages do you have? rest means not first and not last actually.
2. My LAST-ODD page is not rendering. (The difference between ODD and 
LAST-ODD is that the TOTALS section is blank on all pages except the 
LAST-ODD page).
Last page position is not implemented yet...
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: UML diagrams for FOP

2002-11-27 Thread Oleg Tkachenko
Raffi Simon wrote:
Does anyone know if there are any UML diagrams for FOP.
Not really. I remember http://opensource.objectsbydesign.com/fop stuff, but 
it's about very old FOP version.

 I am still
trying to extend FOP to allow me to insert some custom PCL commands with 
a custom element, but I do not know where to begin, I do not understand 
the just by looking at the code, I do not understand where or when the 
elements get rendered. Can anyone help?  I just need to know when I 
extend, FObj and change PCL renderer, what methods do I need to override 
or implement to get it to work. Thank in advance.
Get some good java IDE :)
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Odd, Even Last-odd Problem

2002-11-27 Thread Clay Leeds
Oleg  all you other helpful folks,
At 10:40 AM 11/27/2002, you wrote:
Clay Leeds wrote:
1. My EVEN page is not rendering every other page (EVEN pages). PROBLEM: 
It prints at the end of the document.
How much pages do you have? rest means not first and not last actually.
I don't know how many pages. I am printing medical bills, and, depending on 
the number of procedures/bill detail items, it could be 1 page or 100 
pages. If I knew, then I'd be able to specify this with accuracy, using 
single-page-master-reference or something.

2. My LAST-ODD page is not rendering. (The difference between ODD and 
LAST-ODD is that the TOTALS section is blank on all pages except the 
LAST-ODD page).
Last page position is not implemented yet...
I removed all references to LAST after finding this out yesterday. OT: I 
sure wish there were a reference to position=LAST not being implemented 
yet on the FOP limitations page.

Actually, the new problem (referenced in a newer e-mail) is that I have my 
system set to end-on-even but rather than using the EVEN page 
simple-page-master stuff for the LAST page, FOP outputs another page using 
the ODD simple-page-master, and numbers it page 6 of 5 in the region-before.

- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


Re: Pass xsl:param value to FOP through command line

2002-11-27 Thread Clay Leeds
Oleg,
Thanks for the reply!
At 10:36 AM 11/27/2002, you wrote:
Clay Leeds wrote:
I didn't find this answer in the archives. I'd like to pass an xsl:param 
value to FOP. Is this possible? I found some information about doing this 
through the use of a servlet, however I'm using *.BAT files (under 
Windows)  *.sh scripts (in *NIX). I'd like to be able to pass xsl:param 
or xsl:variable values, to effect output.
You cannot do it using a command line fop.bat/fop.sh. But you can write 
your own script, where first invoke xalan to transform xml+xsl to fo, see 
xalan documentation how to run it from command line[1], and then run FOP 
in -fo mode.
[1] http://xml.apache.org/xalan-j/commandline.html
--
Oleg Tkachenko

I'll try this. Unfortunately, at this time, my clients are already 
complaining about how long it takes to output using FOP. Here's the info 
from FOP's debug mode:

[DEBUG] Initial heap size: 1828Kb
[DEBUG] Current heap size: 7003Kb
[DEBUG] Total memory used: 5174Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 6ms
[DEBUG] Pages rendered: 5
[DEBUG] Avg render time: 2223ms/page
Out of curiosity, how do you think these values would be changed if I did 
the xalan stuff (passing the parameters  then did the FOP stuff? Do you 
think this would increase the overall rendering time? If so, by how much. 
(I'd certainly accept estimations).

:-)
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


Re: Odd, Even Last-odd Problem

2002-11-27 Thread Oleg Tkachenko
Clay Leeds wrote:
Sorry for responding to my own post, but... does anyone know of a 
workaround for this? Originally, I was thinking of doing something like 
this:

xsl:choose
xsl:when test=page-position=last()
xsl:value-of 
select=/doc/EOB/DETAIL/TOTAL/TOTALLINE/CHARGE/
/xsl:when
xsl:otherwise#160;/xsl:otherwise
/xsl:choose

(NOTE: that is page-position=last() and not position of XML content).
You cannot do it, xslt has no idea what page position is. xsl transformation 
and xsl formatting are two different processes, they cannot interact. The only 
way is xsl-fo facilities such as conditional page masters, markers etc.

I need to have a blank in the TOTALS section (which prints in the 
footer in every page) unless it's the LAST page.
Well, as last page is not implemented, it's not too simple. You can try using 
markers. Put marker with total value at the end of your page sequence, and 
retrieve it's value at the page footer. It's not fully safe method, but it 
should work.

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


Re: Pass xsl:param value to FOP through command line

2002-11-27 Thread Clay Leeds
Oleg,
At 01:25 PM 11/27/2002, you wrote:
Clay Leeds wrote:
I'll try this. Unfortunately, at this time, my clients are already 
complaining about how long it takes to output using FOP. Here's the info 
from FOP's debug mode:
[DEBUG] Initial heap size: 1828Kb
[DEBUG] Current heap size: 7003Kb
[DEBUG] Total memory used: 5174Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 6ms
[DEBUG] Pages rendered: 5
[DEBUG] Avg render time: 2223ms/page
Hmmm, too much as to me. Are you using big images? Which FOP version are 
you talking about? I'd try cvs version - some performance patch was applied.
using fop-0.20.4 I'll check into the cvs version stuff if I can. However, I 
doubt my clients will be interested in using a non-release version.

Out of curiosity, how do you think these values would be changed if I did 
the xalan stuff (passing the parameters  then did the FOP stuff? Do you 
think this would increase the overall rendering time? If so, by how much. 
(I'd certainly accept estimations).
I'd say that not really going to change anything, just + time to serialize 
fo to a file + time to read and parse it.
That's what I figured. Thx!
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 

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


Re: Odd, Even Last-odd Problem

2002-11-27 Thread Oleg Tkachenko
Clay Leeds wrote:
Thanks for the input! BTW, I noticed that bug was added to bugzilla 
back in March, and referenced 0.20.3. Unfortunately, I scoured the 
release notes and did not find a fix for it in 0.20.4. :-(
It's not fixed therefore.
A workaround I'm considering, is to use the combination of this at the 
end of my Doc:

  fo:marker marker-class-name=table-continued/
  fo:block id=endofdoc/
and this where I want the TOTALS to display:
  fo:retrieve-marker retrieve-class-name=table-continued 
retrieve-position=last-starting-within-page 
retrieve-boundary=pagexsl:value-of 
select=TOTALS//fo:retrieve-marker

Think that'll work?
Why not? But you'd better rearrange it as follows:
fo:block id=endofdoc
fo:marker marker-class-name=table-continuedfoo/fo:marker
/fo:block
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unknown formatting object null^null ... again

2002-11-27 Thread Oleg Tkachenko
Matthias Kräuter wrote:
my old problem still exists. The stacktrace now shows line numbers but I
don#180;t think it helps very much. I tried newer versions of Xalan (2.4D1)
and Xerces (2.1.0) but nothing changed. 

My supplied Document  is not read from file but is a transformation result
I#180;m holding in memory. I than inserted a document fragment with an
fo:table into it with database data. Could there be a problem with the
namespaces in this  fragment?
How do you build your Document object? Make sure you are using 
namespace-aware DocumentBuilderFactory, which is not namesapce aware by 
default. Try
dfactory.setNamespaceAware(true);

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


Re: AW: Pass xsl:param value to FOP through command line

2002-11-27 Thread Oleg Tkachenko
Clay Leeds wrote:
What's currently happening:
(I currently have enough FLOW content to print 3 ODD pages). ODD page 
prints Page 1 of 5, EVEN page (Wahoo!), ODD page (3 of 5), EVEN page 
(Wahoo!), ODD page (5 of 5), ODD page (6 of 5 -- not Wahoo!). Go back 
and read that. Yes, it's an ODD page with 5 of 5 and then another ODD 
page that indicates 6 of 5! D'oh!
Well, show us your pagination definiton (fo:layout-master-set).
Another weird glitch, is that I've got funkiness with FONT rendering 
where it doesn't properly deal with spacing between words, and also has 
breaks in underlines that shouldn't be there. I tend to chalk that one 
up to FOP's weirdness. If I print with a Courier (monospace font), or 
the default font, I don't have the problem with spacing, although the 
underlining is still there.
File bug to bugzilla, don't forget to attach an example.
I went there, but it didn't help. I don't want a blank page, I want a 
page with content.
Usually that's much easier.
This page has information about how to make ODD/EVEN pages with 
different HEADERs/FOOTERs but it doesn't explain how to have different 
content on ODD  EVEN pages.
You cannot have different content flow on odd and even pages, but you 
can use different static content and your government disclaimer is 
static content as your said. Then you can resize region-before to be 
100% of an even page and place there your static stuff:
fo:simple-page-master master-name=even
		page-height=21.7cm
	page-width=21cm
			fo:region-body margin-top=21.7cm/
			fo:region-before extent=21.7cm region-name=foo/
		/fo:simple-page-master

...
fo:page-sequence master-reference=blabla
fo:static-content flow-name=foo
fo:blockgovernment disclaimer/fo:block
/fo:static-content
Actually you can place static content to a region-body also, but afaik 
it doesn't work in FOP.

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


Re: FOP 0.20.4 (NoClassDefFound)

2002-11-27 Thread Oleg Tkachenko
Ken Teague wrote:
java org.apache.fop.apps.Fop -fo  resume.fo -pdf resume.pdf
Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/avalon/framework/logger/Logger
at org.apache.fop.apps.Fop.main(Unknown Source)
Add avalon jar to the classpath, avalon-framework-cvs-.jar
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Odd, Even Last-odd Problem

2002-11-27 Thread Oleg Tkachenko
Clay Leeds wrote:
I removed all references to LAST after finding this out yesterday. OT: I 
sure wish there were a reference to position=LAST not being 
implemented yet on the FOP limitations page.
You right. Probably a warning ar even error should be logged also.
Actually, the new problem (referenced in a newer e-mail) is that I have 
my system set to end-on-even but rather than using the EVEN page 
simple-page-master stuff for the LAST page, FOP outputs another page 
using the ODD simple-page-master, and numbers it page 6 of 5 in the 
region-before.
Dooh, without seeing example I can say nothing.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Pass xsl:param value to FOP through command line

2002-11-27 Thread Oleg Tkachenko
Clay Leeds wrote:
using fop-0.20.4 I'll check into the cvs version stuff if I can. 
However, I doubt my clients will be interested in using a non-release 
version.
Well, then wait 0.20.5rc, probably next week.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Pass xsl:param value to FOP through command line

2002-11-27 Thread Clay Leeds
Oleg,
You've been a great help. Through all of this, I've learned a bunch about 
FOP (particularly limitations  abilities).

At 02:17 PM 11/27/2002, you wrote:
Clay Leeds wrote:
What's currently happening:
(I currently have enough FLOW content to print 3 ODD pages). ODD page 
prints Page 1 of 5, EVEN page (Wahoo!), ODD page (3 of 5), EVEN page 
(Wahoo!), ODD page (5 of 5), ODD page (6 of 5 -- not Wahoo!). Go back and 
read that. Yes, it's an ODD page with 5 of 5 and then another ODD page 
that indicates 6 of 5! D'oh!
Well, show us your pagination definiton (fo:layout-master-set).
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  !--  begin: define page layout --
  fo:layout-master-set
!--  master set - last page has TOTALs --
!--  simple page masters --
fo:simple-page-master master-name=any-odd page-height=28cm 
page-width=22cm margin-top=1cm margin-bottom=1cm margin-left=1cm 
margin-right=1cm
  fo:region-before extent=13cm region-name=xsl-region-before-odd/
  fo:region-after extent=2.9cm region-name=xsl-region-after-odd/
  fo:region-body margin-top=13cm margin-bottom=2.9cm 
region-name=xsl-region-body-odd/
/fo:simple-page-master
fo:simple-page-master master-name=any-even page-height=28cm 
page-width=22cm margin-top=1cm margin-bottom=1cm margin-left=1cm 
margin-right=1cm
  fo:region-before extent=26cm region-name=xsl-region-before-even/
  fo:region-after extent=1cm region-name=xsl-region-after-even/
  fo:region-body margin-top=26cm margin-bottom=0cm 
region-name=xsl-region-body-even/
/fo:simple-page-master
!--  end: layout for the first page --
fo:page-sequence-master master-name=repeating_pm
  fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference page-position=any 
odd-or-even=odd master-reference=any-odd/
fo:conditional-page-master-reference page-position=any 
odd-or-even=even master-reference=any-even/
  /fo:repeatable-page-master-alternatives
/fo:page-sequence-master
  /fo:layout-master-set
  !--  end: define page layout   --
  fo:page-sequence master-reference=repeating_pm 
force-page-count=end-on-even
fo:static-content flow-name=xsl-region-before-odd
  xsl:call-template name=tmpHeaderOdd/
/fo:static-content
fo:static-content flow-name=xsl-region-before-even
  xsl:call-template name=tmpHeaderEven/
/fo:static-content
fo:static-content flow-name=xsl-region-after-odd
  xsl:call-template name=tmpFooter/
/fo:static-content
fo:static-content flow-name=xsl-region-after-even/
fo:static-content flow-name=xsl-region-body-even/
fo:flow flow-name=xsl-region-body-odd
  xsl:call-template name=tmpBodyOdd/
  fo:block padding=0pt font-size=1pt
fo:marker marker-class-name=table-continued/
fo:block id=endofdoc/
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root

Another weird glitch, is that I've got funkiness with FONT rendering 
where it doesn't properly deal with spacing between words, and also has 
breaks in underlines that shouldn't be there. I tend to chalk that one up 
to FOP's weirdness. If I print with a Courier (monospace font), or the 
default font, I don't have the problem with spacing, although the 
underlining is still there.
File bug to bugzilla, don't forget to attach an example.
Good idea.
I went there, but it didn't help. I don't want a blank page, I want a 
page with content.
Usually that's much easier.
What's easier? Blank page? :-)
This page has information about how to make ODD/EVEN pages with different 
HEADERs/FOOTERs but it doesn't explain how to have different content on 
ODD  EVEN pages.
You cannot have different content flow on odd and even pages, but you can 
use different static content and your government disclaimer is static 
content as your said. Then you can resize region-before to be 100% of an 
even page and place there your static stuff:
fo:simple-page-master master-name=even
page-height=21.7cm
page-width=21cm
fo:region-body margin-top=21.7cm/
fo:region-before extent=21.7cm region-name=foo/
/fo:simple-page-master
...
fo:page-sequence master-reference=blabla
fo:static-content flow-name=foo
fo:blockgovernment disclaimer/fo:block
/fo:static-content
I tried this. Unfortunately, I think that's what gave me the page 6 of 5 
error
Actually you can place static content to a region-body also, but afaik it 
doesn't work in FOP.
Problem is, while you may have zero or more static-content regions, one 
FLOW is required.

I ended up resolving all of the issues I had to resolve (except for the 
weird font rendering issues). Apparently I only have to have the disclaimer 
print at the end (Wahoo!) and I can put the TOTALS in the FLOW so they 
print only once (I don't have to put it in the FOOTER--Wahoo!).

It looks great! Thanks again for all of your help.
- Clay Leeds
- Web Developer
- [EMAIL PROTECTED] 


reference-orientation

2002-11-27 Thread bernt asbjørn omland
Hi,
I am developing a stylesheet which generates a pdf document. I need to
rotate some of the text so that it appears vertically from top to
bottom. I have not been able to do this with fop, so my questions are:

Is reference-orientation for block-container implemented in fop? If not,
is there some other way to rotate a block or a block-container 90
degrees counter clockwise?

---
Bernt A. Omland
Email: [EMAIL PROTECTED]
Phone: 99 25 04 58 




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