RE: Warnings while running FOP

2003-09-15 Thread srinivasan krishnamurthy
I am using a servlet to generate this pdf.
Is there a way by which i can make Apache FOP not to
print these warnings. The content that i see looks
fine.
--- Andreas L. Delmelle [EMAIL PROTECTED]
wrote:
  -Original Message-
  From: srinivasan krishnamurthy
 [mailto:[EMAIL PROTECTED]
 
  I Get the following warnings when i run Apache FOP
  
  [INFO] area contents overflows area in line
  [INFO] area contents overflows area in line
  [INFO] area contents overflows area in line
  [WARNING] Some static content could not fit in the
  area.
  
  I guess it is a problem with the XSLT that i am
  using.How do i fix it.Please let me know.
 
 
 Could be all sorts of different things... I guess,
 if you really need to do
 away with these warnings - they don't necessarily
 have an impact on the
 printed layout; have you checked? - a first step
 would be to go looking for
 table-cells or block-containers with content that,
 in the end, turns out to
 be a bit too wide to fit in the specified
 dimensions... and since the
 warning indicates it has sth to do with a static
 content, you might get away
 with it by just modifying the dimensions of the
 region-before or
 region-after.
 
 Hope it helps,
 
 Greetz,
 
 Andreas Delmelle
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Warnings while running FOP

2003-09-15 Thread Andreas L. Delmelle
 -Original Message-
 From: srinivasan krishnamurthy [mailto:[EMAIL PROTECTED]


 I am using a servlet to generate this pdf.
 Is there a way by which i can make Apache FOP not to
 print these warnings. The content that i see looks
 fine.


I'm supposing you have sth like this in your code somewhere :

Logger SomeLogger = new ConsoleLogger( ConsoleLogger.LEVEL_INFO );
...
driver.setLogger( SomeLogger );
...


If you do, make sure that the first line becomes :

Logger SomeLogger = new ConsoleLogger( ConsoleLogger.LEVEL_ERROR );



That way, you will only get messages on 'real' errors.


Greetz,

Andreas Delmelle


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



RE: Warnings while running FOP

2003-09-15 Thread Glen Mazza
Yes, but...I would encourage Srinivasan to take the
time to code the FO in such a way that those errors
don't show up (even though the output *does* look
fine.)

Glen

--- Andreas L. Delmelle [EMAIL PROTECTED]
wrote:
  -Original Message-
  From: srinivasan krishnamurthy
 [mailto:[EMAIL PROTECTED]
 
 
  I am using a servlet to generate this pdf.
  Is there a way by which i can make Apache FOP not
 to
  print these warnings. The content that i see looks
  fine.
 
 
 I'm supposing you have sth like this in your code
 somewhere :
 
 Logger SomeLogger = new ConsoleLogger(
 ConsoleLogger.LEVEL_INFO );
 ...
 driver.setLogger( SomeLogger );
 ...
 
 
 If you do, make sure that the first line becomes :
 
 Logger SomeLogger = new ConsoleLogger(
 ConsoleLogger.LEVEL_ERROR );
 
 
 
 That way, you will only get messages on 'real'
 errors.
 
 
 Greetz,
 
 Andreas Delmelle
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Warnings while running FOP

2003-09-15 Thread Andreas L. Delmelle
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED]


 Yes, but...I would encourage Srinivasan to take the
 time to code the FO in such a way that those errors
 don't show up (even though the output *does* look
 fine.)


As I think it through a bit more, I must indeed agree. (After all, it could
eventually lead to some weird output results without any indication of the
possible causes ...)


Greetz,

Andreas Delmelle


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



RE: WG: Informations about FOP

2003-09-15 Thread Beer, Christian
 
 PDF and AWT output devices I think will be next for
 Trunk (i.e., we can tell everyone to switch over to
 1.0 for these output devices, and no longer maintain
 these in 0.20.x.)  Then the others..., and then
 maintenance will be (happily!) gone.
 
 Glen
 

Do you have any information when the PDF output will be
ready? I mean not an exact time but something like: 3rd 
quater 2004, 1st quater 2005 or something?


Greets,

Christian

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



HELP HELP, Big Memory Problem

2003-09-15 Thread Marco Knuettel
Hi *,
i use FOP to generate a Dokumentation for a lage Project.
I want to generate a PDF with 500 Sites. With images and more.
The Tomcat use over 1GB of the Memory and then i get an
OutOfMemory-Error. I wont to increase the Momory of Tomcat.
My Tomcat has 1GB.
export JAVA_OPTS=$JAVA_OPTS -Djava.awt.headless=true -Xmx1024m -Xms1024m
What can i do?
Greetings
  Marco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HELP HELP, Big Memory Problem

2003-09-15 Thread Chris Bowditch
From: Marco Knuettel [EMAIL PROTECTED]
snip/
export JAVA_OPTS=$JAVA_OPTS -Djava.awt.headless=true -Xmx1024m -Xms1024m
If you cant increase the JVMs memory anymore then you will have to look at 
the structure of your FO that is being processed by FOP. One way to reduce 
memory usage is to break up your FO into multiple page-sequences.

Have you seen
http://xml.apache.org/fop/running.html#memory ?
Chris
_
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem with margin-left attribute

2003-09-15 Thread Robert P. J. Day

  FOP does not seem to be properly processing the margin-left
attribute.  an example:

  writing in docbook, i frequently have an orderedlist or
admonition which adds an automatic indent, such as

   Tip   This would be the text
 of the tip ...

or

   1.This might be the first question
 of the list of exercises...

now, if i *don't* add a margin-left attribute to things like
code sgements, and i put a code segment (like a screen) into
that text, it will show up as 

   Tip   Here's a tip that show's some code:

 print hello, world ;


IOW, the verbatim element in this case is properly indented to
match the contents of that block.

  however, if i add an attribute of margin-left of, say, 0.25in,
to indent all my code segments, what i'll get is

   Tip   Here's a tip ...

  print hello, world ;

as you can see, the indentation is applied not relative to the 
containing block, but to the left side of the page area (am i 
mangling the terminology?)

  a colleague tells me he tried the same thing with XEP and it
worked properly.  he got

   Tip   Here's a tip ...
  
print hello, world ;
 ^^^
 (0.25in indent above)

so XEP gets it right, but FOP doesn't take into account the
immediately containing block.

  thoughts?

rday


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



RE: WG: Informations about FOP

2003-09-15 Thread Chris Bowditch
From: Beer, Christian [EMAIL PROTECTED]
snip/
Do you have any information when the PDF output will be
ready? I mean not an exact time but something like: 3rd
quater 2004, 1st quater 2005 or something?
Sorry, there is no way to know. Trouble with open-source projects is 
developers are not required to meet a project schedule. And why should they 
be, after all, they are not paid for their contributions.

All I can say is there is a lot to do, and progress is slow, with only a 
small number of developers active.

Chris
_
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger

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


RE: problem with margin-left attribute

2003-09-15 Thread Andreas L. Delmelle
 -Original Message-
 From: Robert P. J. Day [mailto:[EMAIL PROTECTED]
 Sent: maandag 15 september 2003 13:47


   FOP does not seem to be properly processing the margin-left
 attribute.  an example:


Possible. FOP Compliance page
(http://xml.apache.org/fop/compliance.html#fo-property-margin-left)
indicates only partial support for the margin-left property (only WRT page /
region).


   thoughts?


I'm not sure whether this issue has already been addressed in the developer
release...

Anyone?


Greetz,

Andreas


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



Error with Block-container

2003-09-15 Thread Abhijit Junnare
Hi,
I am having problem with fo:block-container. When I
run FOP I am getting an error 
[ERROR] java.lang.ClassCastException:
org.apache.fop.layout.BlockArea

Did anyone come accross something like this?
Abhi

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Error with Block-container

2003-09-15 Thread Chris Bowditch
From: Abhijit Junnare [EMAIL PROTECTED]
Hi,
I am having problem with fo:block-container. When I
run FOP I am getting an error
[ERROR] java.lang.ClassCastException:
org.apache.fop.layout.BlockArea
Did anyone come accross something like this?
Abhi
FOP has only limited support for fo:block-container. It cannot be placed as 
a child of a fo:block, and should be a direct descedent of fo:flow.

This is becoming a VFAQ
Chris
_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error with Block-container

2003-09-15 Thread Abhijit Junnare
Got it thanks.
Abhi
--- Chris Bowditch [EMAIL PROTECTED] wrote:
 From: Abhijit Junnare [EMAIL PROTECTED]
 
 Hi,
 I am having problem with fo:block-container. When I
 run FOP I am getting an error
 [ERROR] java.lang.ClassCastException:
 org.apache.fop.layout.BlockArea
 
 Did anyone come accross something like this?
 Abhi
 
 
 FOP has only limited support for fo:block-container.
 It cannot be placed as 
 a child of a fo:block, and should be a direct
 descedent of fo:flow.
 
 This is becoming a VFAQ
 
 Chris
 

_
 Get Hotmail on your mobile phone
 http://www.msn.co.uk/msnmobile
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: FOP code runs standalone, but not in a Servlet

2003-09-15 Thread Glen Mazza
Mike,

On my machine at work (Win NT), I'm using J2SDK 1.4.1
and Tomcat 4.1.

Currently:  I have *no* xerces/xalan libraries in the
j2sdk\jre\lib\ext directory.  (Perhaps not a wise idea
as Joerg was saying--the libraries with the Sun JDK
may be out-of-date) Also, I have *no* xerces/xalan
libraries in my tomcat4.1\common\lib directory.

Within my (Struts) webapp, in Web-inf\lib (also make
sure your Web-inf is spelled exactly Web-inf, I
believe it's case-sensitive), again, no xerces\xalan
jars.  It is here--and only here--that I placed the
fop.jar, batik.jar and avalon.jar libraries.  (Where
you are placing these three libraries may also be part
of the problem for you.)  None of these--FOP or
XML--libraries are on my classpath.

FOP runs fine under these circumstances on my
machine--hope this helps for you!

Thanks,
Glen


 --- Mike Kellstrand [EMAIL PROTECTED] wrote:
  OK,  I downloaded the latest xalan  xerces, and
  installed
  the jars in the lib/endorsed dir.
  
  I ran the servlet and got:
  null:4:80 fo:flow must contain block-level
 children
  
  Does the endorsed dir get loaded first, or are
 there
  some
  parsers build into one of the Tomcat core jars
 that
  are running instead?
  
  Thanks,  Mike
  


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Solution: FOP code runs standalone, but not in a Servlet

2003-09-15 Thread Mike Kellstrand
Here is how I got FOP to run from a servlet.

I did also have a subtle syntax error in my xslt file that was
causing some of my troubles and leading me down the wrong path.

I think this would be a good entry for the FAQ.
Although I searched the web extensively, I never found this
issue discussed.  Several of you gave some very good ideas
that led me to the correct answer.  Thanks!

This was for Tomcat 4.1.24 ...

1)  I replaced the 2 existing jars in common/endorsed/
(xercesImpl.jar  xmlParserAPIs.jar) with those from the latest
Xerces release, 2.5.0

2)  I also added xalan.jar from the latest Xalan release, 2.5.1 to  
common/endorsed/

3)  I added the FOP jars from fop-0.20.5  to shared/lib  
(fop.jar, batik.jar, avalon-framework-cvs-20020806.jar)


Mike


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



How do I align a fo:block vertically to the bottom of the page?

2003-09-15 Thread Mike Kellstrand
I am constructing a cover page.
I have a header and a footer.
I have a couple blocks at the top of the page.

I would like to have 2 blocks of test that that float down to the
bottom of the page, sort of a vertical align bottom.

These 2 blocks can hold text of varying length, so I don't want
to fix them at a certain spot.  I want the block to locate at the bottom
and expand upward if neccessary.

I've seen a couple similar requests  answers in the archives,
but none of them actually worked (for me).

Any answers or ideas?

Thanks,  Mike


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



Re: Improving performance XSLTC / JAXP

2003-09-15 Thread IvanLatysh
Hello, [EMAIL PROTECTED]
You wrote to [EMAIL PROTECTED] on Thu, 11 Sep 2003 09:18:29 +0200 (CEST):

 m - Use an XSLT compiler like XSLTC that comes with Xalan-J.

 m sounds good but I have no Idea how should I do that.

 m So I'm looking for some more details how to do that.

Read this
http://www.javaworld.com/javaworld/jw-05-2003/jw-0502-xsl.html

It will help you.

---
Yours sincerely, Ivan Latysh.
Ivan[a]yourmail.com


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



Re: How do I align a fo:block vertically to the bottom of the page?

2003-09-15 Thread J.Pietschmann
Mike Kellstrand wrote:
I am constructing a cover page.
I have a header and a footer.
I have a couple blocks at the top of the page.
I would like to have 2 blocks of test that that float down to the
bottom of the page, sort of a vertical align bottom.
I'm not quite sure what you really want. Some hints:
- Use a footnote for the block you want to have at
 the page bottom
- Check whether display-align=bottom can help you,
 in a frame similar to
  http://xml.apache.org/fop/fo.html#fo-center-vertical
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Help on error message: Error in color property value ''

2003-09-15 Thread cknell
This is my first go at FOP, although I have a good deal of experience with 
XML/XSLT. I am weak on Java. I have prepared an XSL-FO document that I'm trying 
to process with FOP. When I do that, I get this error message:

[ERROR] Error in color property value '': org.apache.fop.fo.expr.PropertyExcepti
on: No conversion defined

In fact, I get it 45 times. I used the color and background-color attributes 
123 times in this document, so I have trouble connecting those with this error 
message based on the count, although I can't see any association to other 
elements or attributes. Here is a typical opening element tag with a color 
attribute:

fo:inline color=#EE7744

Can anyone give me guidance on interpreting the error message and eliminating 
the offending markup? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

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



RE: Help on error message: Error in color property value ''

2003-09-15 Thread cknell
Never mind. I found the problem. Sorry to trouble you all.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: [EMAIL PROTECTED]
Sent: Mon, 15 Sep 2003 16:24:49 -0400
To:   [EMAIL PROTECTED]
Subject:  Help on error message: Error in color property value ''

This is my first go at FOP, although I have a good deal of experience with 
XML/XSLT. I am weak on Java. I have prepared an XSL-FO document that I'm trying 
to process with FOP. When I do that, I get this error message:

[ERROR] Error in color property value '': org.apache.fop.fo.expr.PropertyExcepti
on: No conversion defined

In fact, I get it 45 times. I used the color and background-color attributes 
123 times in this document, so I have trouble connecting those with this error 
message based on the count, although I can't see any association to other 
elements or attributes. Here is a typical opening element tag with a color 
attribute:

fo:inline color=#EE7744

Can anyone give me guidance on interpreting the error message and eliminating 
the offending markup? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

-
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]



embedding fop0.20.5 working on jdk1.3.1-linux?

2003-09-15 Thread Cai, Judy
Title:  embedding fop0.20.5 working on jdk1.3.1-linux?





I have a java servlet to generate a PDF page using fop0.20.5. It works fine in the windows XP ( jdk1.4.1 on tomcat-4.1.24 server). But when I moved to Open BSD with jdk1.3.1-linux on tomcat-4.1.24, there was nothing to display, no any error or exception, just blank page. 

I was exhausted to figure it out. Will anybody tell me some experience working fop on jdk1.3.1-linux?

Thanks

Judy Cai