Re: OT: Mime Types

2002-04-23 Thread J.Pietschmann
Savino, Matt C wrote:
...
If you are going off-topic, you'll probably get more
out of it on the cocoon lists.
J.Pietschmann


Debugging FOP

2002-04-23 Thread Patrick Lanphier
How does one debug this?  Thank much for your help.

[EMAIL PROTECTED] fop-0.20.3]# ./fop.sh -d -fo test.fo -pdf
test.pdf
[DEBUG]: Input mode:
[DEBUG]: FO
[DEBUG]: fo input file: test.fo
[DEBUG]: Output mode:
[DEBUG]: pdf
[DEBUG]: output file: test.pdf
[DEBUG]: OPTIONS
[DEBUG]: no user configuration file is used [default]
[DEBUG]: debug mode on
[DEBUG]: dump configuration
[DEBUG]: quiet mode on
[DEBUG]: base directory: file:/tmp/fop-0.20.3/
[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[ERROR]: null
org.apache.fop.apps.FOPException
at org.apache.fop.apps.Driver.render(Driver.java:486)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1193)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
at org.apache.fop.apps.Fop.main(Fop.java:19)

Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
  fax: 800-582-9710




Positioning of a table

2002-04-23 Thread terence . wong

Hi,

does anyone know how to position tables in the region-body? If I try to add
a start-indent in the fo:table tag, the content of the cells shifts but not
the table position.

I saw examples using block-containers but that seem to require absolute
positioning. I was thinking of something more like html where you can align
a table by specifying an align attribute. Any examples of workable
constructs would be appreciated.

Regards,
Terence Wong
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.



Re: Debugging FOP

2002-04-23 Thread Jeremias Maerki
There's obviously something going wrong in the XML parser. Here's a list
of things that come to my mind:

- Check if the standard FOP examples work correctly. If yes, there might
  be a problem with your fo file.
- Open the fo in one or two XML editors to see if it gets parsed
  correctly.
- Search the Internet for similar the same NPE.
- Switch your XML parser (even if you just use another version of the
  same)
- Get the source code of the XML parser and try to track down the cause
  of the exception using the line numbers in the stacktrace.
- Try to set everything up in your IDE and set an exception breakpoint
  for java.lang.NullPointerException.

I hope this helps.

On 23.04.2002 06:41:23 Patrick Lanphier wrote:
 How does one debug this?  Thank much for your help.
 
 [EMAIL PROTECTED] fop-0.20.3]# ./fop.sh -d -fo test.fo -pdf
 test.pdf
 [DEBUG]: Input mode:
 [DEBUG]: FO
 [DEBUG]: fo input file: test.fo
 [DEBUG]: Output mode:
 [DEBUG]: pdf
 [DEBUG]: output file: test.pdf
 [DEBUG]: OPTIONS
 [DEBUG]: no user configuration file is used [default]
 [DEBUG]: debug mode on
 [DEBUG]: dump configuration
 [DEBUG]: quiet mode on
 [DEBUG]: base directory: file:/tmp/fop-0.20.3/
 [INFO]: FOP 0.20.3
 [DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
 [INFO]: building formatting object tree
 [DEBUG]: setting up fonts
 [ERROR]: null
 org.apache.fop.apps.FOPException
 at org.apache.fop.apps.Driver.render(Driver.java:486)
 at
 org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
 at org.apache.fop.apps.Fop.main(Fop.java:19)
 
 -
 
 java.lang.NullPointerException
 at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1193)
 at org.apache.fop.apps.Driver.render(Driver.java:481)
 at
 org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
 at org.apache.fop.apps.Fop.main(Fop.java:19)
 
 Patrick Lanphier
 The Artemis Group
 http://www.artemisgroup.com
 phone: 814-235-0444
   fax: 800-582-9710
 


Cheers,
Jeremias Maerki



Re: Positioning of a table

2002-04-23 Thread Jeremias Maerki
That's an FAQ. Try to use blind tables (like many do it in HTML). You
can easily embed a table in a table-cell.

On 23.04.2002 08:13:36 terence.wong wrote:
 
 Hi,
 
 does anyone know how to position tables in the region-body? If I try to add
 a start-indent in the fo:table tag, the content of the cells shifts but not
 the table position.
 
 I saw examples using block-containers but that seem to require absolute
 positioning. I was thinking of something more like html where you can align
 a table by specifying an align attribute. Any examples of workable
 constructs would be appreciated.
 
 Regards,
 Terence Wong
 This message is for the designated recipient only and may contain
 privileged, proprietary, or otherwise private information.  If you have
 received it in error, please notify the sender immediately and delete the
 original.  Any other use of the email by you is prohibited.


Cheers,
Jeremias Maerki



Re: Do Fop have problems with keep-with-...?

2002-04-23 Thread Steinar Bang
 Steinar Bang [EMAIL PROTECTED]:

 J.Pietschmann [EMAIL PROTECTED]:

 [snip!] If you are generating FO from DocBook, this will probably
 be hard, or harder. You can try to fiddle with the docbook style
 sheets to achieve this effect.

 Some workaround around those lines, is what I will try tomorrow.

What I did was to put beginpage/ elements at appropriate places in
the DocBook XML source, to force line breaks _before_ the problematic
sections. 

This is a hack, because it is vulnerable to changes to the XML
source.  But it is less ugly than the other hacks on the table, and
I'll remove the beginpage/ elements when Fop supports keep-*.

I noticed that the DocBook XSL style sheets didn't have a template for
beginpage, so I put the following in my local FO-producing style
sheet: 

  xsl:template match=beginpage
fo:block break-after=page/
  /xsl:template




Font-Smoothing of embedded SVG in fop

2002-04-23 Thread Sam Prokop

Hi all!

don´t know if this is of topic, but i´ve got svg graphics embedded in fo
by fo:foreign-object.
on the one hand i use this to rotate the text on the other to insert
chart-graphics.

the problem is that the fonds i use in the svg aren´t displayed with
font-smoothing in Acrobat Reader.
the question can this be done and, if yes, how?

thanks in anticipation

Sam


javadoc

2002-04-23 Thread Chris Faulkner
Hello 

Is there any Java doc anywhere for the classes in org.apache.fop ?

Chris




RE: javadoc

2002-04-23 Thread Bill Lunnon
Chris,

I had to download the source distribution to get the javadocs.

Bill

-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 23 April 2002 8:44 PM
To: [EMAIL PROTECTED]
Subject: javadoc


Hello 

Is there any Java doc anywhere for the classes in org.apache.fop ?

Chris



external-graphic

2002-04-23 Thread Harald Meyer
Hello,

I have a problem with external graphics. FOP seems to ignore any settings of
content-height and content-width. It always puts out the graphic at the same
size.

Harald




tables on multiple pages (excel style)

2002-04-23 Thread Roland Lechner
Hi there,

I got some weird problem to solve:

I need to display a table 2 pages wide and n high.
O.k. the table height is no problem a FOP continues the table on the next page, 
but is there some kind of solution to make it 2 pages wide, without cutting 
(splitting) it manually.

Any ideas?

Thanks a lot

Roland

Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13




How to create a fo:table from this...?

2002-04-23 Thread Emma Larsson
Hi,

Below is a snippet from one of the XML files I am working with.

driving/
side-effects
paragraphblabla/paragraph
common
paragraphblabla/paragraph
/common
less-common
paragraphblabla/paragraph
/less-common
rare
paragraphblabla/paragraph
paragraphblabla/paragraph
/rare
paragraphblabla/paragraph
paragraphblabla/paragraph
common
paragraphblabla/paragraph
/common
very-rare
paragraphblabla/paragraph
paragraphblabla/paragraph
/very-rare
paragraphblabla/paragraph
/side-effects
overdosage/

This is from the DTD:
!ELEMENT side-effects (paragraph | very-common | common | less-common | rare | 
very-rare)*  

This is what I want to create:
blabla
table with the elements common, less-common and rare (and their underlying 
paragraphs)
blabla
blabla
table with the elements common and very-rare (and their underlying paragraphs)
blabla

So, I want to create tables, one table for each set of elements that are not 
paragraphs. These sets are 
separated by paragraphs and they contain paragraphs that should be included in 
the table... Any 
suggestions of how to do this?

/Emma




Multi columns for a text

2002-04-23 Thread Xavier DAMAY
Hello,
I want to generate dynamically a multicolumn area for a press-like Pdf.
Does a solution exist ?
I tried fo:block and i'm not confortable with tables.
I will appriciate any help,
Thank you
Xavier


PNG files and Jimi

2002-04-23 Thread John Fletcher



I'm using fop 0.20.3, and I've read the previous 
posts regarding png support. I downloaded Jimi from Sun, put the com 
directory into a jar file (no jar file included with the Jimi download), put the 
jar file into my lib directory, and rebuilt fop. Unfortunately, I still 
cannot seem to get png files to work with fop (using fo:external-graphic). 
Has anyone got this working with 0.20.3? If so, is there anything I'm 
missing?

I get an error of:
Error while creating area : Error creating FopImage 
object (Error creating FopImage object (http://www.domain.com/pngimage.png) 
: org.apache.fop.image.JimiImage

Thanks in advance.

John Fletcher


Re: PDF vs. AWT

2002-04-23 Thread J.Pietschmann
Henrik Holle wrote:
i have one xsl:fo for PDF rendering and AWT preview. my problem are the
differences between
pdf and awt. In awt, my document fit to page, but in pdf all pages are to
small and the left border is to big? i do not want 2 xsl:fo?s, what else can
i do ?
Most often, the reason is the page setup in Acrobat Reader.
Check whether it matches the page size of you FO file.
J.Pietschmann



Re: Font-Smoothing of embedded SVG in fop

2002-04-23 Thread J.Pietschmann
Sam Prokop wrote:
the problem is that the fonds i use in the svg aren´t displayed with
font-smoothing in Acrobat Reader.
the question can this be done and, if yes, how?
I hope you use fonts in your SVG.
Have you tried to set strokeSVGText to false? Look
here:
 http://marc.theaimsgroup.com/?l=fop-devm=100525846132084w=2
J.Pietschmann


Re: external-graphic

2002-04-23 Thread J.Pietschmann
Harald Meyer wrote:
I have a problem with external graphics. FOP seems to ignore any settings of
content-height and content-width. It always puts out the graphic at the same
size.
Both content-height and content-width are not mentioned in
docs/html-docs/implemented.html and seem to be commented out
in the source.
It appears that height and width could serve your purpose,
try them.
J.Pietschmann



Re: tables on multiple pages (excel style)

2002-04-23 Thread J.Pietschmann
Roland Lechner wrote:
I need to display a table 2 pages wide and n high.
O.k. the table height is no problem a FOP continues the table on
 the next page, but is there some kind of solution to make it 2 pages
 wide, without cutting (splitting) it manually.
Technically, the table overflows the available box space.
Overflowing stuff could be clipped, drawn outside the box
if possible or may be handled in a user agent specific
manner, usually interpreted as scrolling. There doesn't
appear to be a provision to spill vertically overflowing
stuff onto the next page.
Basically, this means you have to resort to manually splitting
the table.
J.Pietschmann



Re: Problems with FOP and XML/XSL

2002-04-23 Thread J.Pietschmann
Ramon Maria Gallart wrote:
 ...I'm getting an error message when i try to get a PDF from a XML
  and XSL source. The message i'm getting is the following:
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[INFO]: Parsing of document complete, stopping renderer
[ERROR]: java.lang.ArithmeticException: / by zero
Are you sure you produced this message with the code below?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:template match=informe
fo:root xmlns:fo=http://www.w3c.org/1999/XSL/Format;
 ^^^
Wrong namespace. The correct one is already declared above.
FOP barfs #1;
...
fo:simple-page-master master-name=all
 page-height=11.5in page-width=8.5in
 margin=1in
Shorthand property margin is not yet implemented. Use margin-top,
margin-left and so on.
FOP barfs #2, this time a warning only.
/fo:layout-master-set
fo:static-content flow-name=xsl-region-after   
A flow has to be inside a page-sequence, this means... fo:page-sequence 
master-reference=all
... here.
After this is corrected your sample files produce a perfectly
usable PDF.
J.Pietschmann


Re: PNG files and Jimi

2002-04-23 Thread John Fletcher
Sorry, I just wrote that url to the png 'cause I was too lazy to write the
200 character url that I'm actually using.

Just got it working - I rebuilt fop again, I must have done something wrong
the first time, or not included something in my classpath, or...

Thanks for the assistance.

John Fletcher

- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 12:46 PM
Subject: Re: PNG files and Jimi


 John Fletcher wrote:
  Error while creating area : Error creating FopImage object (Error
  creating FopImage object (http://www.domain.com/pngimage.png) :
  org.apache.fop.image.JimiImage

 Point your browser to http://www.domain.com/pngimage.png and
 check whether you see the PNG.

 J.Pietschmann





Re: Debugging FOP - XML editor

2002-04-23 Thread Nicola Ken Barozzi
From: Patrick Lanphier [EMAIL PROTECTED]

 What's the best free XML editor?

IMHO http://www.xmlcooktop.com/

It can use different xml processing engines and FOP is one of them :-)

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-