Re: Error with footnote

2003-01-20 Thread Marko Petersen
At 23:13 19.01.2003 +0100, you wrote:
java.lang.NullPointerException
at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:94)
Seems like links do not mix well with footnote spilling.
Workarounds:
- Avoid links in footnotes generally. This will save you occasional
  other trouble too.
- Avoid footnote spilling. Check for footnotes which are rendered
  on the page following the reference and force a page break at a
  convenient place before the footnote reference.
I think the problem is easy to fix.
Ok, thanks, I think I will try your second suggestion.
Marko
J.Pietschmann

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


Error with footnote

2003-01-19 Thread Marko Petersen
Hi,
I often get the following error after changing some content of my docbook-XML
when I try to generate PDF:
[ERROR] null
org.apache.fop.apps.FOPException
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:74)
at org.apache.fop.apps.Fop.main(Fop.java:19)
-
java.lang.NullPointerException
at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:94)
at org.apache.fop.fo.flow.Block.layout(Block.java:206)
at org.apache.fop.fo.flow.FootnoteBody.layout(FootnoteBody.java:73)
at org.apache.fop.fo.flow.Footnote.layoutFootnote(Footnote.java:92)
at org.apache.fop.layout.Page.setPendingFootnotes(Page.java:199)
at 
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:341)
at 
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:210)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)

If I change the layout or the content, the message sometimes disappears.
Any ideas what the cause may be? Or is this error docbook-related and already
exists in the fo file?
Thanks,
Marko

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


Re: Error with footnote

2003-01-19 Thread J.Pietschmann
Marko Petersen wrote:
I often get the following error after changing some content of my 
docbook-XML when I try to generate PDF:
...
java.lang.NullPointerException
at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:94)
Seems like links do not mix well with footnote spilling.
Workarounds:
- Avoid links in footnotes generally. This will save you occasional
  other trouble too.
- Avoid footnote spilling. Check for footnotes which are rendered
  on the page following the reference and force a page break at a
  convenient place before the footnote reference.
I think the problem is easy to fix.
J.Pietschmann

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


Error with WebSphere

2003-01-16 Thread Paolo Beatrici



I've just installed an application embedding fop 
into Websphere 4.0.1 Advanced Edition on Linux.
We got the following exception :



[03.01.16 14:32:02:736 CET] 10b37e12 ExceptionUtil X CNTR0020E: 
Non-application exception occurred while processing method createOutput on bean 
BeanId(Deployed_tes_isybusEjbWAS#tes_isybusEjb.jar#Isybus, f2c72ebaa6): 
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
at org.apache.fop.apps.Driver.getParserClassName(Unknown Source)
at org.apache.fop.svg.SVGElementMapping.setupSVG(Unknown Source)
at org.apache.fop.svg.SVGElementMapping.addToBuilder(Unknown Source)
at org.apache.fop.apps.Driver.addElementMapping(Unknown Source)
at org.apache.fop.apps.Driver.addElementMapping(Unknown Source)
at org.apache.fop.apps.Driver.setupDefaultMappings(Unknown Source)
at org.apache.fop.apps.Driver.init(Unknown Source)
at com.isyde.isydriver.output.FopDriver.save(FopDriver.java:86)
at com.isyde.isybusparser.output.IsyFopDriver.save(IsyFopDriver.java:76)
at com.isyde.isybusparser.DDMParser.parse(DDMParser.java:95)
at com.isyde.isybus.so.Isybus.createOutput(Isybus.java:72)

Can you help me about this?
Thank you.
Paolo Beatrici


RE: Error with WebSphere

2003-01-16 Thread Sharma, Siddharth









I suggest
you use the Xerces that ships with fop.

Make it
part of your enterprise application, and reference the same by adding its entry
in the webapp's manifest.



Or, simply
replace the Xerces in websphere's lib directory if that is an option for you.





-Original
Message-
From: Paolo Beatrici
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 16, 2003
11:37 AM
To: [EMAIL PROTECTED]
Subject: Error with WebSphere



I've
just installed an application embedding fop into Websphere 4.0.1 Advanced
Edition on Linux.

We got
the following exception :



[03.01.16 14:32:02:736 CET] 10b37e12
ExceptionUtil X CNTR0020E: Non-application exception occurred while processing
method createOutput on bean
BeanId(Deployed_tes_isybusEjbWAS#tes_isybusEjb.jar#Isybus, f2c72ebaa6):
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader

at org.apache.fop.apps.Driver.getParserClassName(Unknown
Source)

at
org.apache.fop.svg.SVGElementMapping.setupSVG(Unknown Source)

at
org.apache.fop.svg.SVGElementMapping.addToBuilder(Unknown Source)

at
org.apache.fop.apps.Driver.addElementMapping(Unknown Source)

at org.apache.fop.apps.Driver.addElementMapping(Unknown
Source)

at
org.apache.fop.apps.Driver.setupDefaultMappings(Unknown Source)

at
org.apache.fop.apps.Driver.init(Unknown Source)

at
com.isyde.isydriver.output.FopDriver.save(FopDriver.java:86)

at com.isyde.isybusparser.output.IsyFopDriver.save(IsyFopDriver.java:76)

at
com.isyde.isybusparser.DDMParser.parse(DDMParser.java:95)

at
com.isyde.isybus.so.Isybus.createOutput(Isybus.java:72)



Can you help me about
this?

Thank you.

Paolo
Beatrici






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

Re: Error with WebSphere

2003-01-16 Thread bhati001



Dont know whether this is related to Fop but i use 
xslt with xml and while testing my installation yesterday, I got the same xsl 
error, so what I did was go with the previous version of xalan and xerces. It 
seemed to work but of course u lose the functionality and performance of the new 
version.

  - Original Message - 
  From: 
  Sharma, Siddharth 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, January 16, 2003 10:38 
  AM
  Subject: RE: Error with WebSphere
  
  
  I 
  suggest you use the Xerces that ships with 
  fop.
  Make 
  it part of your enterprise application, and reference the same by adding its 
  entry in the webapp's manifest.
  
  Or, 
  simply replace the Xerces in websphere's lib directory if that is an option 
  for you.
  
  
  -Original 
  Message-From: Paolo 
  Beatrici [mailto:[EMAIL PROTECTED]Sent: Thursday, January 16, 2003 11:37 
  AMTo: 
  [EMAIL PROTECTED]Subject: Error with 
  WebSphere
  
  I've 
  just installed an application embedding fop into Websphere 4.0.1 Advanced 
  Edition on Linux.
  We got 
  the following exception :
  
  [03.01.16 14:32:02:736 CET] 
  10b37e12 ExceptionUtil X CNTR0020E: Non-application exception occurred while 
  processing method createOutput on bean 
  BeanId(Deployed_tes_isybusEjbWAS#tes_isybusEjb.jar#Isybus, f2c72ebaa6): 
  java.lang.AbstractMethodError: 
  javax/xml/parsers/SAXParser.getXMLReader
  at 
  org.apache.fop.apps.Driver.getParserClassName(Unknown 
  Source)
  at 
  org.apache.fop.svg.SVGElementMapping.setupSVG(Unknown 
  Source)
  at 
  org.apache.fop.svg.SVGElementMapping.addToBuilder(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.addElementMapping(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.addElementMapping(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.setupDefaultMappings(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.init(Unknown Source)
  at 
  com.isyde.isydriver.output.FopDriver.save(FopDriver.java:86)
  at 
  com.isyde.isybusparser.output.IsyFopDriver.save(IsyFopDriver.java:76)
  at 
  com.isyde.isybusparser.DDMParser.parse(DDMParser.java:95)
  at 
  com.isyde.isybus.so.Isybus.createOutput(Isybus.java:72)
  
  Can you help me 
  about this?
  Thank 
  you.
  Paolo 
  Beatrici
  
  

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


Re: ERROR Divided by zero

2003-01-13 Thread Laura Ameijide Garcia
If I execute it in the comand thats the result:  It's for my version?

.Laura

C:\fop\fop-0.20.3java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;
lib\avalon-framework 4.0.jar;lib\logkit1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop -d -xml evalu.html -xsl evalu.xsl evalu.pdf

[DEBUG]: Input mode:
[DEBUG]: xslt transformation
[DEBUG]: xml input file: evalu.html
[DEBUG]: xslt stylesheet: gastronofo.xsl
[DEBUG]: Output mode:
[DEBUG]: pdf
[DEBUG]: output file: evalu.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:/C:/fop/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
[INFO]: Parsing of document complete, stopping renderer
[DEBUG]: Initial heap size: 978Kb
[DEBUG]: Current heap size: 801Kb
[DEBUG]: Total memory used: -177Kb
[DEBUG]:   Memory use is indicative; no GC was performed
[DEBUG]:   These figures should not be used comparatively
[DEBUG]: Total time used: 250ms
[DEBUG]: Pages rendererd: 0
[INFO]: Parsing of document complete, stopping renderer
[ERROR]: / by zero
org.apache.fop.apps.FOPException: / by zero
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)

-

javax.xml.transform.TransformerException: / by zero
at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:137)
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)

-

javax.xml.transform.TransformerException: / by zero
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1212)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:479)
-
java.lang.ArithmeticException: / by zero
at
org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:171)
at
org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:205)
at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler
.java:180)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1194)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:479)





***
- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 13, 2003 10:46 AM
Subject: Re: ERROR Divided by zero


 This indicates an arithmetic error like: 13 / 0 = illegal. You know that
 from school.

 Somewhere in FOP something wanted to divide some value by zero. The
 question now is: where and why?

 The first thing you can do is calling FOP from the command line and
 using the -d parameter which enables more debug output. That way, we
 will get a stacktrace which helps you/us find the location of the error.
 If the information you will get then doesn't help you, send another
 email and copy the whole output from FOP and attach the xhtml and your
 xsl so we can reproduce the error.

 What FOP version do you use?

 On 13.01.2003 10:06:26 Laura Ameijide Garcia wrote:
  Hello,
  I'm beginner in this area. I'm trying to convert a simple html using a
xsl  but the fop always says me:
  [ERROR]: / by zero.
 
  Somebody can help me? What's the meaning of this error?


 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: ERROR Divided by zero

2003-01-13 Thread Jeremias Maerki
Ok, the first part is easy. That's an old bug on 0.20.3. Please upgrade
to the 0.20.5rc. But you still need to fix the problem that FOP really
doesn't generate even one page. To track this down, generate the FO file
by just running your XSLT processor but not FOP. Then analyze what's
wrong. If you don't succeed post your FO file.

On 13.01.2003 11:53:20 Laura Ameijide Garcia wrote:

snip/

 [INFO]: FOP 0.20.3

snip/

 [DEBUG]: Pages rendererd: 0

snip/
 java.lang.ArithmeticException: / by zero


Jeremias Maerki


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



AW: ERROR Divided by zero

2003-01-13 Thread Müller, Markus
I just have a guess, but is this correct: 
[snip] -xml evalu.html ???

I remember having the same problem when exchanging the xml file for the xsl
file.

Greets,
Markus


# -Ursprüngliche Nachricht-
# Von: Laura Ameijide Garcia [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 13. Januar 2003 11:53
# An: [EMAIL PROTECTED]
# Betreff: Re: ERROR Divided by zero
# 
# If I execute it in the comand thats the result:  It's for my version?
# 
# .Laura
# 
# C:\fop\fop-0.20.3java -cp
# build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;
# lib\avalon-framework 4.0.jar;lib\logkit1.0.jar;lib\jimi-1.0.jar
# org.apache.fop.apps.Fop -d -xml evalu.html -xsl evalu.xsl evalu.pdf
# 
# [DEBUG]: Input mode:
# [DEBUG]: xslt transformation
# [DEBUG]: xml input file: evalu.html
# [DEBUG]: xslt stylesheet: gastronofo.xsl
# [DEBUG]: Output mode:
# [DEBUG]: pdf
# [DEBUG]: output file: evalu.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:/C:/fop/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
# [INFO]: Parsing of document complete, stopping renderer
# [DEBUG]: Initial heap size: 978Kb
# [DEBUG]: Current heap size: 801Kb
# [DEBUG]: Total memory used: -177Kb
# [DEBUG]:   Memory use is indicative; no GC was performed
# [DEBUG]:   These figures should not be used comparatively
# [DEBUG]: Total time used: 250ms
# [DEBUG]: Pages rendererd: 0
# [INFO]: Parsing of document complete, stopping renderer
# [ERROR]: / by zero
# org.apache.fop.apps.FOPException: / by zero
# 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)
# 
# -
# 
# javax.xml.transform.TransformerException: / by zero
# at
# org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:137)
# 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)
# 
# -
# 
# javax.xml.transform.TransformerException: / by zero
# at
# org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
# nsformerImpl.j
# ava:1212)
# at
# org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
# pl.java:2894)
# at java.lang.Thread.run(Thread.java:479)
# -
# java.lang.ArithmeticException: / by zero
# at
# org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer
# .java:171)
# at
# org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:205)
# at
# org.apache.xalan.transformer.ResultTreeHandler.endDocument(Res
# ultTreeHandler
# .java:180)
# at
# org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
# nsformerImpl.j
# ava:1194)
# at
# org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
# pl.java:2894)
# at java.lang.Thread.run(Thread.java:479)
# 
# 
# 
# 
# **
# **
# ***
# - Original Message -
# From: Jeremias Maerki [EMAIL PROTECTED]
# To: [EMAIL PROTECTED]
# Sent: Monday, January 13, 2003 10:46 AM
# Subject: Re: ERROR Divided by zero
# 
# 
#  This indicates an arithmetic error like: 13 / 0 = illegal. 
# You know that
#  from school.
# 
#  Somewhere in FOP something wanted to divide some value by zero. The
#  question now is: where and why?
# 
#  The first thing you can do is calling FOP from the command line and
#  using the -d parameter which enables more debug output. 
# That way, we
#  will get a stacktrace which helps you/us find the location 
# of the error.
#  If the information you will get then doesn't help you, send another
#  email and copy the whole output from FOP and attach the 
# xhtml and your
#  xsl so we can reproduce the error.
# 
#  What FOP version do you use?
# 
#  On 13.01.2003 10:06:26 Laura Ameijide Garcia wrote:
#   Hello,
#   I'm beginner in this area. I'm trying to convert a simple 
# html using a
# xsl  but the fop always says me:
#   [ERROR]: / by zero.
#  
#   Somebody can help me? What's the meaning of this error?
# 
# 
#  Jeremias Maerki
# 
# 
#  
# -
#  To unsubscribe, e-mail: [EMAIL PROTECTED]
#  For additional commands, e-mail: [EMAIL PROTECTED]
# 
# 
# 
# -
# To unsubscribe, e-mail: [EMAIL PROTECTED]
# For additional commands, e-mail: [EMAIL PROTECTED]
# 

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



[ERROR] Could not load external SVG:

2003-01-09 Thread Jasmin Mehta








Im trying to access the .xsl
file by setting the relative path. Ive written below line in my servlet
to set the baseDir:



org.apache.fop.configuration.Configuration.put(baseDir,http://localhost:8100/LDNotes/phySignatures/);



where phySignatures
is the dir where my images are located.



Im getting below error while opening the PDF file:



[ERROR] Could not load external SVG: The current document is
unable to create an

element
of the requested type (namespace: http://www.w3.org/2000/svg, name: hea

d).

[ERROR] Error while creating area :
No ImageReader for this type of image (http:

//localhost:8100/MDNotes/phySignatures/signature.gif)



Can somebody please help?



Thanks

Jasmin
















Re: File does not begin with %PDF error

2002-12-21 Thread Oleg Tkachenko
vikas waykole wrote:
I am generating pdf file from formatting objects using fop.0.20.2.
But today I got very different error ie File does not begin with %PDF.
What might be the cause and fix for this.
First of all consider upgrade to the latest version of FOP.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


File does not begin with %PDF error

2002-12-20 Thread vikas waykole
Hi,
I am generating pdf file from formatting objects using fop.0.20.2.
But today I got very different error ie File does not begin with %PDF.
What might be the cause and fix for this.
Thanks in advance,
Vikas Waykole


_
MSN 8: advanced junk mail protection and 3 months FREE*. 
http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7324DI=7474SU= 
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_advancedjmf_3mf

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


Re: Error while loading a local image

2002-12-19 Thread Marcus Kalthoff




Hi,

I found the error. In this case the images were not handled by tomcat directly,
but by a servlet. The servlet did not set the content type. So the content
type being null results in a NullPointerException in fop. Is fop not robust
enough? 


Ciot, Thierry schrieb:

  
Or can somebody say "I have had no problems with that.

  
  
I have no problem including jpeg or gif files from a Tomcat server (Both
Tomcat 3.x and 4.x).
And my Tomcat server is running on a different port (48080).

I use something like this because my images are dynamically generated and
the url is extracted from the input XML stream:

fo:block
 fo:external-graphic
  xsl:attribute name="src"xsl:value-of select="."//xsl:attribute
 /fo:external-graphic
/fo:block

Thierry.

-Original Message-
From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 4:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Error while loading a local image


Hi,

just tried with fop-0.20.5rc, but same result: no picture is shown which 
has a "http://localhost/..." url. Does somebody have the same problem?
Or can somebody say "I have had no problems with that. I can include 
images with http://localhost/ !!".

Regards
Marcus Kalthoff


Marcus Kalthoff schrieb:

  
  
Oleg Tkachenko schrieb:



  Marcus Kalthoff wrote:

  
  
I have an fo:external-graphic in my .fo file. The transformation is
running in a jsp-File on tomcat.

When I use a local src= "" "http://localhost/" or
"http://127.0.0.1/.....

no picture is shown and I get an error message in the log file:

Error in XObject : Error while loading image
http://localhost/contextpath/myfile.gif : class
java.lang.NullPointerException - null

  
  

Sounds too bizarre, give us more information (full but FOP-only 
exception trace, FOP's debug messages).

  

Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use 
an image on my local tomcat application server. If I type in the url 
in my browser - I see the image.

Here is the complete output with -d option. Again, if use the 
"file:c:\myimage.gif" syntax or if I place the picture somewhere in 
the web and use "http://somewhereinteweb/myimage.gif" everything is fine.


E:\public\fop-0.20.4rcjava -cp 


  
  build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib
\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\j
imi-1.0.jar 
  
  
org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] 
Input mode:
[DEBUG] FO
[DEBUG] fo input file: C:\placeoffo\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: test2.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/placeoffo/
[INFO] FOP 0.20.4rc
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[ERROR] Error in XObject : Error while loading image 
http://localhost/contextpath/images/myimage.gif : class 
java.lang.NullPointerException - null
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 408Kb
[DEBUG] Current heap size: 1624Kb
[DEBUG] Total memory used: 1215Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 3055ms
[DEBUG] Pages rendererd: 1
[DEBUG] Avg render time: 3055ms/page
  





Re: Error while loading a local image

2002-12-19 Thread Johan Åbrandt
 I found the error.
 The servlet did not set the content type.
 Is fop not robust enough?
Robust enough for who? Shit in - shit out...
Marcus Kalthoff wrote:
  Hi,
I found the error. In this case the images were not handled by tomcat 
directly, but by a servlet. The servlet did not set the content type. So 
the content type being null results in a NullPointerException in fop. Is 
fop not robust enough?

Ciot, Thierry schrieb:
Or can somebody say I have had no problems with that.
   

I have no problem including jpeg or gif files from a Tomcat server (Both
Tomcat 3.x and 4.x).
And my Tomcat server is running on a different port (48080).
I use something like this because my images are dynamically generated and
the url is extracted from the input XML stream:
fo:block
fo:external-graphic
 xsl:attribute name=srcxsl:value-of select=.//xsl:attribute
/fo:external-graphic
/fo:block
Thierry.
-Original Message-
From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 4:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Error while loading a local image
Hi,
just tried with fop-0.20.5rc, but same result: no picture is shown which 
has a http://localhost/...; url. Does somebody have the same problem?
Or can somebody say I have had no problems with that. I can include 
images with http://localhost/ !!.

Regards
Marcus Kalthoff
Marcus Kalthoff schrieb:
 

Oleg Tkachenko schrieb:
   

Marcus Kalthoff wrote:
 

I have an fo:external-graphic in my .fo file. The transformation is
running in a jsp-File on tomcat.
When I use a local src= like http://localhost/; or
http://127.0.0.1/.
no picture is shown and I get an error message in the log file:
Error in XObject : Error while loading image
http://localhost/contextpath/myfile.gif : class
java.lang.NullPointerException - null
   

Sounds too bizarre, give us more information (full but FOP-only 
exception trace, FOP's debug messages).

 

Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use 
an image on my local tomcat application server. If I type in the url 
in my browser - I see the image.

Here is the complete output with -d option. Again, if use the 
file:c:\myimage.gif syntax or if I place the picture somewhere in 
the web and use http://somewhereinteweb/myimage.gif; everything is fine.

E:\public\fop-0.20.4rcjava -cp 

   

build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib
\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\j
imi-1.0.jar 
 

org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] 
Input mode:
[DEBUG] FO
[DEBUG] fo input file: C:\placeoffo\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: test2.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/placeoffo/
[INFO] FOP 0.20.4rc
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[ERROR] Error in XObject : Error while loading image 
http://localhost/contextpath/images/myimage.gif : class 
java.lang.NullPointerException - null
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 408Kb
[DEBUG] Current heap size: 1624Kb
[DEBUG] Total memory used: 1215Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 3055ms
[DEBUG] Pages rendererd: 1
[DEBUG] Avg render time: 3055ms/page


--
Johan Åbrandt
Technical Project Manager
(Tekninen projektipäällikkö)
Tel. +358 9 6817 3342
Mobile. +358 40 848 8068
[EMAIL PROTECTED]
Profit Software Oy
Meritullinkatu 11 C
00170 Helsinki, Finland
__
This message and its attachments have been found clean from known viruses 
with three different antivirus programs.
__

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


Re: Error while loading a local image

2002-12-19 Thread Oleg Tkachenko
Marcus Kalthoff wrote:
I found the error. In this case the images were not handled by tomcat 
directly, but by a servlet. The servlet did not set the content type. So 
the content type being null results in a NullPointerException in fop. Is 
fop not robust enough?
FOP is robust, but error handling/reporting - not, it's well-known problem, 
which is addressed by the redesign. In all cases of problems with images I'd 
suggest to open image in mozilla and check out content-type, length etc in 
View/Page Info window.

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


Re: Error while loading a local image

2002-12-18 Thread Eric Prevost

Return Receipt
   
Your  Re: Error while loading a local image
document   
:  
   
was   Eric Prevost/Luxembourg/IBM  
received   
by:
   
at:   18/12/2002 13:54:11  
   





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



RE: Error while loading a local image

2002-12-18 Thread Calero, Roberto
Title: RE: Error while loading a local image





Run FOP with the debug option on. I had this problem before and it was because some settings in my webserver not allowing anonymous access.

when I set it to allow anonymous access the problem went away. (BTW my web server is IIS)



-Original Message-
From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 18 December 2002 8:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Error while loading a local image



Hi,


just tried with fop-0.20.5rc, but same result: no picture is shown which 
has a http://localhost/... url. Does somebody have the same problem?
Or can somebody say I have had no problems with that. I can include 
images with http://localhost/ !!.


Regards
Marcus Kalthoff



Marcus Kalthoff schrieb:


 Oleg Tkachenko schrieb:

 Marcus Kalthoff wrote:

 I have an fo:external-graphic in my .fo file. The transformation is
 running in a jsp-File on tomcat.

 When I use a local src= "" http://localhost/ or
 http://127.0.0.1/.

 no picture is shown and I get an error message in the log file:

 Error in XObject : Error while loading image
 http://localhost/contextpath/myfile.gif : class
 java.lang.NullPointerException - null



 Sounds too bizarre, give us more information (full but FOP-only 
 exception trace, FOP's debug messages).

 Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use 
 an image on my local tomcat application server. If I type in the url 
 in my browser - I see the image.

 Here is the complete output with -d option. Again, if use the 
 file:c:\myimage.gif syntax or if I place the picture somewhere in 
 the web and use http://somewhereinteweb/myimage.gif everything is fine.


 E:\public\fop-0.20.4rcjava -cp 
 build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar 

 org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] 
 Input mode:
 [DEBUG] FO
 [DEBUG] fo input file: C:\placeoffo\test.fo
 [DEBUG] Output mode:
 [DEBUG] pdf
 [DEBUG] output file: test2.pdf
 [DEBUG] OPTIONS
 [DEBUG] no user configuration file is used [default]
 [DEBUG] debug mode on
 [DEBUG] dump configuration
 [DEBUG] quiet mode on
 [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [DEBUG] base directory: file:/C:/placeoffo/
 [INFO] FOP 0.20.4rc
 [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [DEBUG] setting up fonts
 [INFO] [1]
 [ERROR] Error in XObject : Error while loading image 
 http://localhost/contextpath/images/myimage.gif : class 
 java.lang.NullPointerException - null
 [DEBUG] Last page-sequence produced 1 pages.
 [INFO] Parsing of document complete, stopping renderer
 [DEBUG] Initial heap size: 408Kb
 [DEBUG] Current heap size: 1624Kb
 [DEBUG] Total memory used: 1215Kb
 [DEBUG] Memory use is indicative; no GC was performed
 [DEBUG] These figures should not be used comparatively
 [DEBUG] Total time used: 3055ms
 [DEBUG] Pages rendererd: 1
 [DEBUG] Avg render time: 3055ms/page




-
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: Error while loading a local image

2002-12-16 Thread Marcus Kalthoff
Oleg Tkachenko schrieb:
Marcus Kalthoff wrote:
I have an fo:external-graphic in my .fo file. The transformation is
running in a jsp-File on tomcat.
When I use a local src= like http://localhost/; or
http://127.0.0.1/.
no picture is shown and I get an error message in the log file:
Error in XObject : Error while loading image
http://localhost/contextpath/myfile.gif : class
java.lang.NullPointerException - null

Sounds too bizarre, give us more information (full but FOP-only 
exception trace, FOP's debug messages).

Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use an 
image on my local tomcat application server. If I type in the url in my 
browser - I see the image.

Here is the complete output with -d option. Again, if use the 
file:c:\myimage.gif syntax or if I place the picture somewhere in the 
web and use http://somewhereinteweb/myimage.gif; everything is fine.

E:\public\fop-0.20.4rcjava -cp 
build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar 
org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf 
[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: C:\placeoffo\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: test2.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/placeoffo/
[INFO] FOP 0.20.4rc
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[ERROR] Error in XObject : Error while loading image 
http://localhost/contextpath/images/myimage.gif : class 
java.lang.NullPointerException - null
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 408Kb
[DEBUG] Current heap size: 1624Kb
[DEBUG] Total memory used: 1215Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 3055ms
[DEBUG] Pages rendererd: 1
[DEBUG] Avg render time: 3055ms/page


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


Re: Error while loading a local image

2002-12-16 Thread Oleg Tkachenko
Marcus Kalthoff wrote:
Duuno what to say and have no idea how to reproduce the problem, but
E:\public\fop-0.20.4rcjava -cp 
can you upgrade to fop0.20.5rc?
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while loading a local image

2002-12-15 Thread Oleg Tkachenko
Marcus Kalthoff wrote:
I have an fo:external-graphic in my .fo file. The transformation is
running in a jsp-File on tomcat.
When I use a local src= like http://localhost/; or
http://127.0.0.1/.
no picture is shown and I get an error message in the log file:
Error in XObject : Error while loading image
http://localhost/contextpath/myfile.gif : class
java.lang.NullPointerException - null
Sounds too bizarre, give us more information (full but FOP-only exception 
trace, FOP's debug messages).

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


Error while loading a local image

2002-12-12 Thread Marcus Kalthoff
I have an fo:external-graphic in my .fo file. The transformation is running 
in a jsp-File on tomcat.

When I use a local src= like http://localhost/; or http://127.0.0.1/.

no picture is shown and I get an error message in the log file:

Error in XObject : Error while loading image 
http://localhost/contextpath/myfile.gif : class java.lang.NullPointerException 
- null

Everything works fine, when I put the same picture on an other webserver and 
use http://somewhere; or if I use file:c:\localdirectory.

If I use the same url(http://localhost/contextpath/myfile.gif) in the browser, 
I can see the picture without a problem.

Any ideas?



__
Den Komfort von WEB.DE FreeMail nutzen, aber die alten E-Mail-Adressen nicht
aufgeben? Kein Problem: http://freemail.web.de/features/?mc=021128


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



Re: [Fatal Error]: xlink:href is not bound

2002-12-07 Thread Oleg Tkachenko
Stefano Barella wrote:
I have updated the fop lib from 0.20.2 release to 0.20.4 and now I have the 
following problem:
[Fatal Error]: The prefix xlink for attribute xlink:href is not bound.
The xsl and xml file are the same used before ( in the previouse releasa ) while the svg is created by the new batik lib provided 
by the new fop release (0.20.4).

Any suggestion ?
Make sure you have declared xlink namespace properly.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Fatal Error]: xlink:href is not bound

2002-12-06 Thread Stefano Barella
Hello,

I have updated the fop lib from 0.20.2 release to 0.20.4 and now I have the 
following problem:

[Fatal Error]: The prefix xlink for attribute xlink:href is not bound.

The xsl and xml file are the same used before ( in the previouse releasa ) 
while the svg is created by the new batik lib provided 
by the new fop release (0.20.4).

Any suggestion ?

Thanks a lot
  Bye 
Stefano Barella


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



FOP [ERROR] null

2002-12-04 Thread Boris Rousseau




Hello,

Can I get any help on the following error message: [ERROR] null
All I could find is that my FO file is not valid, but as far as I can see 
it is...
Also when there is no FOP schema provided on the apache web site (the 
link
points to the faq).

Can I get an hold on this schema to validate my source ?

Regards,
Boris


Re: FOP [ERROR] null

2002-12-04 Thread Chris Bowditch
See comments below
Hello,
Can I get any help on the following error message: [ERROR] null
All I could find is that my FO file is not valid, but as far as I can see 
it is...
Try turning debug on, FOP should then give more information on the cause of 
the problem (-d on command line)

Also when there is no FOP schema provided on the apache web site (the link
points to the faq).
RenderX provides a DTD on their website http://www.renderx.com/ but there is 
no official DTD, as FO cannot be fully validated using a DTD/Schema alone.

Can I get an hold on this schema to validate my source ?
Regards,
Boris

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: FOP [ERROR] null

2002-12-04 Thread Oleg Tkachenko
Boris Rousseau wrote:
Can I get any help on the following error message: [ERROR] null
All I could find is that my FO file is not valid, but as far as I can 
see it is...
Also when there is no FOP schema provided on the apache web site (the link
points to the faq).
You can get it from cvs, see 
http://cvs.apache.org/viewcvs.cgi/xml-fop/docs/foschema.

Can I get an hold on this schema to validate my source ?
Validation is at our todo list, but your request is important, I'll add it as 
user enhancement request to bugzilla.

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


Re: FOP [ERROR] null

2002-12-04 Thread J.Pietschmann
Boris Rousseau wrote:
Can I get any help on the following error message: [ERROR] null
While there is a variety of reasons, this is most often caused
by a master-reference missing or misspelled in a
conditional-page-master-reference. Check this first.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re[2]: error caused by double.sided=1

2002-12-01 Thread Tobias Grimm
Hi Togan,

Sunday, December 01, 2002, 6:40:02 PM, you wrote:

TM Which version of the Docbook XSL stylesheets as with 1.58.1 is the
TM latest and it does not do that

I'm using 1.58.1 too... the problem seems to appear only, when a
chapter spans more than one page. I've done some stylesheet
customization (see at the end of this mail). But I don't think this
causes the trouble.

TM try to get the  fop-0_20_2-maintain release which is 0.20.5

This works. Thanks a lot!

But there's still a small bug. Empty pages (i.e. inserted to make
chapters start on odd page numbers) have the wrong margins. The
binding side should always have a larger margin. Although, the page
numbers are printed always on the correct side.

I'm not sure... is this a problem with the xsl stylesheets or is this
done by FOP?

bye,

Tobias


xsl:param name=double.sided1/xsl:param

xsl:param name=generate.toc
book  toc,title
book/chapter  toc,title
/xsl:param

xsl:template match=chapter/*[1]
  xsl:call-template name=toc.separator/
  xsl:apply-imports/
/xsl:template

xsl:template name=toc.separator
  fo:block break-before=odd-page/
/xsl:template


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



Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-19 Thread Jiri_Nejedly

I serched a little, and I found one difference between calling the fop.bat
and processing servlet .

The fop.bat use

org.apache.xerces.parsers.SAXParser

while servlet code uses

oracle.xml.parser.v2.SAXParser

The library xmlparserv2.jar is necessary, without it whole JDeveloper won't
run. All FOP libraries are in front of this library in my project, but
servlet still uses parser from xmlparserv2.jar .

My question is this :   Can I somehow choose, which parser (from which
library) to use ? Some example would be welcomed. I am still a beginner in
this field. Thanks.




   
[EMAIL PROTECTED]   
  
rcz.cz   Komu:   [EMAIL PROTECTED]  
 
 Kopie: 
   
18.11.2002   Pedmt: Strange error when 
upgrading from 0.20.3 to 0.20.4   
12:01   
   
Odpovzte   
   
prosm  
   
uivateli   
   
fop-user
   

   

   




I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's
JDeveloper 9i

To my project I added all libraries, which I found in fop.bat :

fop.jar
batik.jar
xalan-2.3.1.jar
xercesImpl-2.0.1.jar
xml-apis.jar
avalon-framework-cvs-20020315.jar
logkit-1.0.jar

When I process my FO file by fop.bat, everything is ok.
When I do this in servlet, following error appears:

[INFO]: building formatting object tree
[INFO]: [1]- the logging stops here


java.lang.NullPointerException int
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
org.apache.fop.layout.FontState.getAscender() void
org.apache.fop.layout.LineArea.(org.apache.fop.layout.FontState, int, int,
int, int, int, org.apache.fop.layout.LineArea) void
org.apache.fop.layout.BlockArea.start() org.apache.fop.fo.Status
org.apache.fop.fo.flow.Block.layout(org.apache.fop.layout.Area)
org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area,
org.apache.fop.fo.pagination.Region) org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area) void
org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree)


void
org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence)


void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String,
java.lang.String, java.lang.String) java.lang.String
oracle.xml.parser.v2.NonValidatingParser.parseElement()
NonValidatingParser.java:1112 void
oracle.xml.parser.v2.NonValidatingParser.parseRootElement()
NonValidatingParser.java:287 void
oracle.xml.parser.v2.NonValidatingParser.parseDocument()
NonValidatingParser.java:254 void
oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
XMLParser.java:141 void
org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
org.xml.sax.InputSource) void org.apache.fop.apps.Driver.run() void
or.jbo.html.beans.ReportShowBean.kresli() ReportShowBean.java:554 void _dt.
_ReportShowDT._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) ReportShowDT.jsp:23 void
oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpJsp.java:119 void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,


javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:302 void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest,


javax.servlet.http.HttpServletResponse) JspServlet.java:407 void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,


javax.servlet.http.HttpServletResponse) JspServlet.java:328 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpServlet.java:336 void
com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,


javax.servlet.ServletResponse) ServletRequestDispatcher.java:684 void

Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-19 Thread Marko Petersen
Hi,
I think this can be done by System.setProperty(...), and I thought with:
System.setProperty( org.xml.sax.driver, 
org.apache.xerces.parsers.SAXParser );

But I tried it and it does not work, maybe I did something wrong.
I tried another one, and the following should work:
System.setProperty( javax.xml.parsers.SAXParserFactory,
   org.apache.xerces.jaxp.SAXParserFactoryImpl 
);

Then you get a org.apache.xerces.jaxp.SAXParserImpl Parser.
If no property is set, the application uses the default parser: the first 
one it finds
in your classpath.

You can test it by your own, try the following with and without setting the
System property:
// =
import javax.xml.parsers.*;
public class ParserTest
{
public static void main(String[] argv)
throws Exception
{
System.setProperty( javax.xml.parsers.SAXParserFactory,
org.apache.xerces.jaxp.SAXParserFactoryImpl );
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser parser = factory.newSAXParser();
System.out.println(Parser Class:  + parser.getClass().getName());
}
}
// ===
Greetings,
Marko
At 11:32 19.11.2002 +0100, you wrote:
I serched a little, and I found one difference between calling the fop.bat
and processing servlet .
The fop.bat use
org.apache.xerces.parsers.SAXParser
while servlet code uses
oracle.xml.parser.v2.SAXParser
The library xmlparserv2.jar is necessary, without it whole JDeveloper won't
run. All FOP libraries are in front of this library in my project, but
servlet still uses parser from xmlparserv2.jar .
My question is this :   Can I somehow choose, which parser (from which
library) to use ? Some example would be welcomed. I am still a beginner in
this field. Thanks.


[EMAIL PROTECTED] 

rcz.cz   Komu:   [EMAIL PROTECTED] 

 Kopie: 

18.11.2002   Pøedmìt: Strange error when 
upgrading from 0.20.3 to 0.20.4
12:01 

Odpovìzte 

prosím 

u¾ivateli 

fop-user 





I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's
JDeveloper 9i
To my project I added all libraries, which I found in fop.bat :
fop.jar
batik.jar
xalan-2.3.1.jar
xercesImpl-2.0.1.jar
xml-apis.jar
avalon-framework-cvs-20020315.jar
logkit-1.0.jar
When I process my FO file by fop.bat, everything is ok.
When I do this in servlet, following error appears:
[INFO]: building formatting object tree
[INFO]: [1]- the logging stops here
java.lang.NullPointerException int
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
org.apache.fop.layout.FontState.getAscender() void
org.apache.fop.layout.LineArea.(org.apache.fop.layout.FontState, int, int,
int, int, int, org.apache.fop.layout.LineArea) void
org.apache.fop.layout.BlockArea.start() org.apache.fop.fo.Status
org.apache.fop.fo.flow.Block.layout(org.apache.fop.layout.Area)
org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area,
org.apache.fop.fo.pagination.Region) org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area) void
org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree)
void
org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence)
void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String,
java.lang.String, java.lang.String) java.lang.String
oracle.xml.parser.v2.NonValidatingParser.parseElement()
NonValidatingParser.java:1112 void
oracle.xml.parser.v2.NonValidatingParser.parseRootElement()
NonValidatingParser.java:287 void
oracle.xml.parser.v2.NonValidatingParser.parseDocument()
NonValidatingParser.java:254 void
oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
XMLParser.java:141 void
org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
org.xml.sax.InputSource) void org.apache.fop.apps.Driver.run() void
or.jbo.html.beans.ReportShowBean.kresli() ReportShowBean.java:554 void _dt.
_ReportShowDT._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) ReportShowDT.jsp:23 void
oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpJsp.java:119 void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:302 void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) JspServlet.java:407 void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) JspServlet.java:328 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpServlet.java:336

Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jiri_Nejedly
I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's
JDeveloper 9i

To my project I added all libraries, which I found in fop.bat :

fop.jar
batik.jar
xalan-2.3.1.jar
xercesImpl-2.0.1.jar
xml-apis.jar
avalon-framework-cvs-20020315.jar
logkit-1.0.jar

When I process my FO file by fop.bat, everything is ok.
When I do this in servlet, following error appears:

[INFO]: building formatting object tree
[INFO]: [1]- the logging stops here


java.lang.NullPointerException int
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
org.apache.fop.layout.FontState.getAscender() void
org.apache.fop.layout.LineArea.(org.apache.fop.layout.FontState, int, int,
int, int, int, org.apache.fop.layout.LineArea) void
org.apache.fop.layout.BlockArea.start() org.apache.fop.fo.Status
org.apache.fop.fo.flow.Block.layout(org.apache.fop.layout.Area)
org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area,
org.apache.fop.fo.pagination.Region) org.apache.fop.fo.Status
org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area) void
org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree)

void
org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence)

void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String,
java.lang.String, java.lang.String) java.lang.String
oracle.xml.parser.v2.NonValidatingParser.parseElement()
NonValidatingParser.java:1112 void
oracle.xml.parser.v2.NonValidatingParser.parseRootElement()
NonValidatingParser.java:287 void
oracle.xml.parser.v2.NonValidatingParser.parseDocument()
NonValidatingParser.java:254 void
oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
XMLParser.java:141 void
org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
org.xml.sax.InputSource) void org.apache.fop.apps.Driver.run() void
or.jbo.html.beans.ReportShowBean.kresli() ReportShowBean.java:554 void _dt.
_ReportShowDT._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) ReportShowDT.jsp:23 void
oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpJsp.java:119 void
oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:302 void
oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse) JspServlet.java:407 void
oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse) JspServlet.java:328 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) HttpServlet.java:336 void
com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,

javax.servlet.ServletResponse) ServletRequestDispatcher.java:684 void
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest,

javax.servlet.http.HttpServletResponse) ServletRequestDispatcher.java:269
boolean
com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread,

com.evermind.server.http.EvermindHttpServletRequest,
com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream,
java.io.OutputStream, boolean) HttpRequestHandler.java:735 void
com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:243 void com.evermind.util.ThreadPoolThread.run()
ThreadPoolThread.java:64

Any suggestions what's wrong ? Thanks.




Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jeremias Maerki
That's probably a follow-up error because a font could not be loaded. If
you run your sample form the command line with the -d option, you should
get a better error message. Maybe you didn't set the second logger in
the MessageHandler class correctly because that's where the original
error message should have been logged. The logging in the maint branch
is still somewhat strange.


On 18.11.2002 12:01:52 Jiri_Nejedly wrote:
 I am trying to upgrade FOP from version 0.20.3 to 0.20.4 . I use Oracle's
 JDeveloper 9i
 
 To my project I added all libraries, which I found in fop.bat :
 
 fop.jar
 batik.jar
 xalan-2.3.1.jar
 xercesImpl-2.0.1.jar
 xml-apis.jar
 avalon-framework-cvs-20020315.jar
 logkit-1.0.jar
 
 When I process my FO file by fop.bat, everything is ok.
 When I do this in servlet, following error appears:
 
 [INFO]: building formatting object tree
 [INFO]: [1]- the logging stops here
 
 
 java.lang.NullPointerException int
 org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
 org.apache.fop.layout.FontState.getAscender() void
 org.apache.fop.layout.LineArea.(org.apache.fop.layout.FontState, int, int,
 int, int, int, org.apache.fop.layout.LineArea) void
 org.apache.fop.layout.BlockArea.start() org.apache.fop.fo.Status
 org.apache.fop.fo.flow.Block.layout(org.apache.fop.layout.Area)
 org.apache.fop.fo.Status
 org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area,
 org.apache.fop.fo.pagination.Region) org.apache.fop.fo.Status
 org.apache.fop.fo.flow.Flow.layout(org.apache.fop.layout.Area) void
 org.apache.fop.fo.pagination.PageSequence.format(org.apache.fop.layout.AreaTree)
 
 void
 org.apache.fop.apps.StreamRenderer.render(org.apache.fop.fo.pagination.PageSequence)
 
 void org.apache.fop.fo.FOTreeBuilder.endElement(java.lang.String,
 java.lang.String, java.lang.String) java.lang.String
 oracle.xml.parser.v2.NonValidatingParser.parseElement()
 NonValidatingParser.java:1112 void
 oracle.xml.parser.v2.NonValidatingParser.parseRootElement()
 NonValidatingParser.java:287 void
 oracle.xml.parser.v2.NonValidatingParser.parseDocument()
 NonValidatingParser.java:254 void
 oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
 XMLParser.java:141 void
 org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
 org.xml.sax.InputSource) void org.apache.fop.apps.Driver.run() void
 or.jbo.html.beans.ReportShowBean.kresli() ReportShowBean.java:554 void _dt.
 _ReportShowDT._jspService(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse) ReportShowDT.jsp:23 void
 oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse) HttpJsp.java:119 void
 oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest,
 
 javax.servlet.http.HttpServletResponse, java.lang.String)
 JspPageTable.java:302 void
 oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest,
 
 javax.servlet.http.HttpServletResponse) JspServlet.java:407 void
 oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest,
 
 javax.servlet.http.HttpServletResponse) JspServlet.java:328 void
 javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse) HttpServlet.java:336 void
 com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,
 
 javax.servlet.ServletResponse) ServletRequestDispatcher.java:684 void
 com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest,
 
 javax.servlet.http.HttpServletResponse) ServletRequestDispatcher.java:269
 boolean
 com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread,
 
 com.evermind.server.http.EvermindHttpServletRequest,
 com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream,
 java.io.OutputStream, boolean) HttpRequestHandler.java:735 void
 com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
 HttpRequestHandler.java:243 void com.evermind.util.ThreadPoolThread.run()
 ThreadPoolThread.java:64
 
 Any suggestions what's wrong ? Thanks.
 



Jeremias Maerki



Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
When I do this in servlet, following error appears:
[INFO]: building formatting object tree
[INFO]: [1]- the logging stops here
java.lang.NullPointerException int
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(int) int
Looks like somewhinh goes wrong with font metrics loading. Show us your font 
definition in userconfig.xml and FOP's debug trace.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Jiri_Nejedly


To Jeremias Maerki:
---
... If you run your sample form the command line with the -d option, you
should
get a better error message.

- The batch works ok (see next)

...Maybe you didn't set the second logger in
the MessageHandler class correctly

- What is second logger ?

To Oleg Tkachenko:
--
...Show us your font definition in userconfig.xml and FOP's debug trace.

I include userconfig.xml here, but nothing unusual in it:

(See attached file: userconfig.xml)

[INFO]: building formatting object tree
[INFO]: [1]

- this is all I get from logger when run from servlet

This command line works OK:

fop -d -c C:\javaProject\Klient\public_html\dt\fop\userconfig.xml -fo d:
\test.fo -pdf d:\output.pdf

[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: d:\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: d:\output.pdf
[DEBUG] OPTIONS
[DEBUG] user configuration file: C:
\javaProject\Klient\public_html\dt\fop\userconfig.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] reading user configuration file
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/d:/
[INFO] FOP 0.20.4
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[WARNING] table-layout=auto is not supported, using fixed!
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 1376Kb
[DEBUG] Current heap size: 2450Kb
[DEBUG] Total memory used: 1074Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 1042ms
[DEBUG] Pages rendered: 1
[DEBUG] Avg render time: 1042ms/page


I show here also my servlet  code (simplified) :


FileOutputStream log_fos = new FileOutputStream(logFile);
PrintStream log_ps = new PrintStream(log_fos);
if (log == null) {
 Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
 PatternFormatter formatter = new PatternFormatter(
[%{priority}]: %{message}\n%{throwable} );
 LogTarget target = null;
 target = new StreamTarget(log_ps, formatter);
 hierarchy.setDefaultLogTarget(target);
 log = hierarchy.getLoggerFor(fop);
 log.setPriority(Priority.DEBUG);
}
FileInputStream file = new FileInputStream(FO_File);
Driver driver = new Driver();
driver.setLogger(new org.apache.avalon.framework.logger.LogKitLogger(log));
 // this is the only thing
//driver.setLogger(log);  // I must
change since 0.20.3
driver.setRenderer(Driver.RENDER_PDF);
driver.setInputSource(new InputSource(file));
driver.setOutputStream(new FileOutputStream(outFile2));
driver.setErrorDump(true);
Options options = new Options(new File( path_to_cfg + userconfig.xml));
driver.run();// here an
exception is thrown
log_fos.close();









  
Jeremias Maerki 
  
[EMAIL PROTECTED]   Komu:   [EMAIL PROTECTED]  
 
enmail.ch  Kopie:  
  
Pedmt: Re: Strange error when 
upgrading from 0.20.3 to 0.20.4   
18.11.2002 12:24
  
Odpovzte prosm
  
uivateli   
  
fop-user
  

  

  




That's probably a follow-up error because a font could not be loaded. If
you run your sample form the command line with the -d option, you should
get a better error message. Maybe you didn't set the second logger in
the MessageHandler class correctly because that's where the original
error message should have been logged. The logging

Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-18 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
- What is second logger ?
See at FOPServlet.java example:
import org.apache.avalon.framework.logger.ConsoleLogger;
import org.apache.avalon.framework.logger.Logger;
...
Logger log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
MessageHandler.setScreenLogger(log);
driver.setLogger(log);
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Error using xml2pdf.xsl and xslfoRef.xml

2002-11-14 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I've used xml2pdf.xsl and xslforef.xml in the distribution directory docs,
so i think they are correct.
My parser is Xerces.
Well, it gets convolute. These xml and xsl surely okay. Try if it works from a 
command line - run the following from within FOP directoiry:
fop.bat -xml docs/xslfoRef.xml -xsl docs/xml2pdf.xsl -pdf test.pdf -d
If it works therefore the problem is in the environment you are trying to 
embed FOP to. Make sure it uses jars from FOP distribution (especially xerces 
and xalan).

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: error while generating a font metric file

2002-11-14 Thread Florence Deforge
OK, I tried with other fonts and it works fine.

Actually I'm just starting to experiment on the following process :
I receive data from an application which generates an XML file from Excel
and Word data.
XML nodes which are created to represent Word data have an attribute wich
refers to a CSS stylesheet, and childs (representing paragraphs with
html-like tags) may have style attributes that contains info on fonts or
other style stuff.
This is fine to generate html that looks like the original Word data with
an xsl stylesheet that link to the CSS.
But with fop I don't know how to refer either to the CSS stylesheet nor to
take into account the other style attributes ... which, in the real world,
will sometimes contain wingding font !

Any hint is welcome, in case you feel this has to deal with the fop issues
...

Thanks anyway
Florence

- Original Message -
From: Oleg Tkachenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 12:19 PM
Subject: Re: error while generating a font metric file


 Florence Deforge wrote:

  I'm trying to add wingding font to fop and face a problem. I'm afraid I
  have not fully understood how it is supposed to work, anyway maybe
  someone will help.
  So I read the doc on xml.apache.org/fop/fonts.html and wrote the
  following command line to generate the font metrics :
 
  java -cp
 
build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar;
lib\batik.jar
 
  org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf
  ttfwingding.xml
 
  The response is :
  TTF Reader v1.1.1
 
  Reading c:\winnt\fonts\wingding.ttf...
 
  Number of glyphs in font: 226
  Unicode cmap table not present

 wingding is not really unicode font, see archive for more
 info:http://marc.theaimsgroup.com/?l=fop-devm=100653574622185w=2.
 Look for unicode version of the font or try another one (what about
webdongs?).

 --
 Oleg Tkachenko
 eXperanto team
 Multiconn Technologies, Israel





Re: error while generating a font metric file

2002-11-14 Thread Oleg Tkachenko
Florence Deforge wrote:
Actually I'm just starting to experiment on the following process :
I receive data from an application which generates an XML file from Excel
and Word data.
XML nodes which are created to represent Word data have an attribute wich
refers to a CSS stylesheet, and childs (representing paragraphs with
html-like tags) may have style attributes that contains info on fonts or
other style stuff.
This is fine to generate html that looks like the original Word data with
an xsl stylesheet that link to the CSS.
I would say xml+css is more likely presentational format, oriented for 
CSS-aware applications. Therefore you have to process CSS. Look in the 
archive, I have explained recently how it could be done.

But with fop I don't know how to refer either to the CSS stylesheet nor to
take into account the other style attributes ...
You cannot. You have to parse CSS yourself and query style information.
 which, in the real world,
will sometimes contain wingding font !
That means somebody have to fix winding font :)
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


error while generating a font metric file

2002-11-13 Thread Florence Deforge



Hi 
I'm trying to add wingding font to fop and face a 
problem. I'm afraid I have not fully understood how it is supposed to work, 
anyway maybe someone will help. 
So I read the doc on xml.apache.org/fop/fonts.html 
and wrote the following command line to generate the font metrics : 


java -cp 
build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar;lib\batik.jar 
org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf 
ttfwingding.xml

The response is : 
TTF Reader v1.1.1

Reading c:\winnt\fonts\wingding.ttf...

Number of glyphs in font: 226Unicode cmap table 
not presentjava.util.NoSuchElementException: Vector 
Enumeration at 
java.util.Vector$1.nextElement(Unknown 
Source) at 
org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:415) 
at 
org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:404) 
at 
org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:181) 
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:143)
Anyone knows what should be done ? 

Note that following the example in doc, the command 
line should be: 

java 
-cp...org.apache.fop.fonts.apps.TTFReader 
c:\winnt\fonts\wingding.ttf c:\winnt\fonts\wingding.ttf 
ttfwingding.xml
But this results in a help message showing 
TTFReader calls options
Any explanation greatly appreciated.
Florence


Re: Error using xml2pdf.xsl and xslfoRef.xml

2002-11-13 Thread paolo.beatrici
I've used xml2pdf.xsl and xslforef.xml in the distribution directory docs,
so i think they are correct.
My parser is Xerces.

Paolo Beatrici.

- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 10:29 PM
Subject: Re: Error using xml2pdf.xsl and xslfoRef.xml


 [EMAIL PROTECTED] wrote:
  Hallo!
  It's the first time i use fop. I try to embed fop into a java class like
  FopServlet.java does. To test my class i've used xml2pdf.xsl and
  xslfoRef.xml but u got the following exception :
 
  [ERROR] Unknown formatting object ^root
  org.apache.fop.apps.FOPException: Root element must be root, not
(none):root

 The most likely reason is that you didn't declare or use
 the XSLFO namespace properly. Look into the docs/examples
 directory in your FOP distribution for some examples
 how a FO file should look like, and perhaps look specifically
 at the glossary.xml/glossary.xsl combo for how it might look
 in XSLT.
 Another possibility is that your XML parser is somehow
 configured to not recognize namespaces. Seek local help in this
 case.

 J.Pietschmann





Error using xml2pdf.xsl and xslfoRef.xml

2002-11-08 Thread paolo.beatrici





Hallo!
It's the first time i use fop. I try to embed 
fop into a java class like FopServlet.java does. To test my class i've used 
xml2pdf.xsl and xslfoRef.xml but u got the following 
exception :

[ERROR] Unknown formatting object 
^root
org.apache.fop.apps.FOPException: Root element must 
be root, not (none):root
at 
org.apache.fop.fo.FOTreeBuilder.startElement(Unknown Source)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:434)
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:832)
at 
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:568)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:796)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:927)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at 
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
at org.apache.fop.apps.Driver.render(Unknown 
Source)
at 
com.isyde.testfop.CreatePdf.renderXML(CreatePdf.java:118)
at 
com.isyde.testfop.CreatePdf.init(CreatePdf.java:61)
at 
com.isyde.testfop.CreatePdf.main(CreatePdf.java:161)

Exception in thread "main" 

Can You help me?

Many Thanks!

Paolo B.



Re: Error using xml2pdf.xsl and xslfoRef.xml

2002-11-08 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Hallo!
It's the first time i use fop. I try to embed fop into a java class like 
FopServlet.java does. To test my class i've used xml2pdf.xsl and 
xslfoRef.xml but u got the following exception :
 
[ERROR] Unknown formatting object ^root
org.apache.fop.apps.FOPException: Root element must be root, not (none):root
The most likely reason is that you didn't declare or use
the XSLFO namespace properly. Look into the docs/examples
directory in your FOP distribution for some examples
how a FO file should look like, and perhaps look specifically
at the glossary.xml/glossary.xsl combo for how it might look
in XSLT.
Another possibility is that your XML parser is somehow
configured to not recognize namespaces. Seek local help in this
case.
J.Pietschmann



Error using servlet for external-graphic

2002-06-27 Thread Joel Stevenson
Hi all,
I'm trying to use a servlet to generate a dynamic image and am seeing 
the following error:

6/26/02 3:16 PM -- 
http://localhost:8080/client/DoGetImage?w=200h=100leftmargin=1.5
6/26/02 3:16 PM -- Could not load external SVG: The current document 
is unable to create an element of the requested type (namespace: 
http://www.w3.org/2000/svg, name: head).Error while creating area : 
No ImageReader for this type of image 
(http://localhost:8080/client/DoGet Image?w=200h=100leftmargin=1.5)

The relevant FO source is:
fo:external-graphic
src=http://localhost:8080/client/DoGetImage?w=200amp;h=100amp;leftmargin=1.5/
The image displays fine in a browser, but after adding some logging 
code to the servlet it appears that FOP is not calling it at all. 
Does anybody know what might be causing this error (querystring in 
the URL, use of a port number, etc)?

Much thanks,
Joel Stevenson


RE: Block Absolute Postions --ERROR--

2002-06-27 Thread Stefano Barella
In Attach an Example.

Bye 
  Stefano


-Original Message-
From: [m] zentrale | andre marthaler [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 27, 2002 4:19 PM
To: [EMAIL PROTECTED]
Subject: AW: Block Absolute Postions --ERROR--


Using the Example, I get an org.apache.fop.layout.BlockArea Error on
FOP 0.20.3

My Example:



!-- Begin zelle_links --
xsl:template match=zelle_links
fo:block-container height=19cm width=9cm left=9cm
top=0cm position=absolute
fo:block
xsl:apply-templates /
/fo:block
/fo:block-container
/xsl:template
!-- End zelle_links --

Where is the Error??

Andre.


-Ursprüngliche Nachricht-
Von: Stefano Barella [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. Juni 2002 15:22
An: [EMAIL PROTECTED]
Betreff: RE: Block Absolute Postions


Hello I'm Stefano, I found few days ago the way to create
A block in an absolute position. The correct way is to
Create a block-container in a fixed position and put
inside a block where you can put anything.
An example, inside a BODY :

xsl:for-each select=BODY
  fo:block-container height=19cm
  width=9cm
  left=0cm
  top=0cm
  position=absolute border-width=0.01mm
border-style=solid 

   fo:block
   /fo:block
  /fo:block-container
  fo:block-container height=19cm
  width=9cm
  left=9cm
  top=0cm
  position=absolute border-width=0.01mm
border-style=solid 
  fo:block
  /fo:block
  /fo:block-container

Bye
  Stefano


-Original Message-
From: [m] zentrale | andre marthaler [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 3:09 PM
To: [EMAIL PROTECTED]
Subject: Block Absolute Postions


Hello,

i want define an fo:block on an Absolute Position, but i dont find any
Info about this in any Tutorial.

Can anybody help me, where i can define an absolute Position on my
page??

Thx a lot .

Andre.
[--My Bad English--]








attachment: Example.zip


RE: Block Absolute Postions --ERROR--

2002-06-27 Thread Stefano Barella
May be:

Instead of match,try to use name.

Here below the code:

!-- Begin zelle_links --
xsl:template name=zelle_links
fo:block-container height=19cm width=9cm left=9cm
top=0cm position=absolute
fo:block
xsl:apply-templates /
/fo:block
/fo:block-container
/xsl:template
!-- End zelle_links --

Bye
  Stefano



-Original Message-
From: [m] zentrale | andre marthaler [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 27, 2002 4:19 PM
To: [EMAIL PROTECTED]
Subject: AW: Block Absolute Postions --ERROR--


Using the Example, I get an org.apache.fop.layout.BlockArea Error on
FOP 0.20.3

My Example:



!-- Begin zelle_links --
xsl:template match=zelle_links
fo:block-container height=19cm width=9cm left=9cm
top=0cm position=absolute
fo:block
xsl:apply-templates /
/fo:block
/fo:block-container
/xsl:template
!-- End zelle_links --

Where is the Error??

Andre.


-Ursprüngliche Nachricht-
Von: Stefano Barella [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. Juni 2002 15:22
An: [EMAIL PROTECTED]
Betreff: RE: Block Absolute Postions


Hello I'm Stefano, I found few days ago the way to create
A block in an absolute position. The correct way is to
Create a block-container in a fixed position and put
inside a block where you can put anything.
An example, inside a BODY :

xsl:for-each select=BODY
  fo:block-container height=19cm
  width=9cm
  left=0cm
  top=0cm
  position=absolute border-width=0.01mm
border-style=solid 

   fo:block
   /fo:block
  /fo:block-container
  fo:block-container height=19cm
  width=9cm
  left=9cm
  top=0cm
  position=absolute border-width=0.01mm
border-style=solid 
  fo:block
  /fo:block
  /fo:block-container

Bye
  Stefano


-Original Message-
From: [m] zentrale | andre marthaler [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 3:09 PM
To: [EMAIL PROTECTED]
Subject: Block Absolute Postions


Hello,

i want define an fo:block on an Absolute Position, but i dont find any
Info about this in any Tutorial.

Can anybody help me, where i can define an absolute Position on my
page??

Thx a lot .

Andre.
[--My Bad English--]












Re: Error using servlet for external-graphic

2002-06-27 Thread J.Pietschmann
Please don't crosspost to both dev and user.
Joel Stevenson wrote:
I'm trying to use a servlet to generate a dynamic image and am seeing 
the following error:

6/26/02 3:16 PM -- 
http://localhost:8080/client/DoGetImage?w=200h=100leftmargin=1.5
6/26/02 3:16 PM -- Could not load external SVG: The current document is 
unable to create an element of the requested type (namespace: 
http://www.w3.org/2000/svg, name: head).Error while creating area : No 
ImageReader for this type of image (http://localhost:8080/client/DoGet 
Image?w=200h=100leftmargin=1.5)
This means the SVG reader got an exception. Unfortunately,
I was not able to track it down in either the FOP or the
Batik source. It looks like it indicates there is a head
element in the SVG which is probably illegal.
The relevant FO source is:
fo:external-graphic
src=http://localhost:8080/client/DoGetImage?w=200amp;h=100amp;leftmargin=1.5/ 

The image displays fine in a browser, but after adding some logging code 
to the servlet it appears that FOP is not calling it at all. Does 
anybody know what might be causing this error (querystring in the URL, 
use of a port number, etc)?
The exception above implies a successful connection to the server,
and it seems something was downloaded.
Check the access logs of your server whether the URL was accessed.
Try to use a HTML download utility like wget to retrieve the SVG
and save it to disk. Point your fo:external-graphic to the disk
file and check whether the problem persists. If so, it wasn't the
URL. Try to load the saved SVG into the Batik command line viewer.
This should give a more detailed error message if there is still
a problem.
J.Pietschmann


RE: error handling

2002-06-19 Thread Roland Neilands
 You're right. The command line wrapper can and probably should delete
 the target file in case of an error. Could you check if the
 return code
 is set on the command line? If not, we should fix that.
 Jeremias Märki

 Don't know about UNIX but on Windows it seems that the return
 code is always 0.

 Regards
 Con

Sorry about the delay, my Solaris test box was reconfigured.
The return code is not set by FOP on Linux: even appending:
exit $?
to fop.sh makes no difference as FOP itself returns 0 regardless.

NB: running 'java' with no parameters does return error code 1.

I have no idea how to set or check DOS return codes.

Regards,
Roland



Re: error handling

2002-06-17 Thread Jeremias Maerki
You're right. The command line wrapper can and probably should delete
the target file in case of an error. Could you check if the return code
is set on the command line? If not, we should fix that.

   It is. The problem is that FOP can't delete the output file
  in case of a
   problem if it only gets an OutputStream. And for
  optimization reasons
   FOP can't wait until the end to write the output to the
  target stream.
 
  But does fop should delete output file? I don't think so, that's
  responsibility of enclosing application, which has full control of
  OutputStream and can easily do this being catching FOPException.
 
 All very well for embeddding, but the command prompt version still leaves
 the corrupt file there  no file at all would be preferable to a useless
 one.
 I hope the UNIX script sets the return code on errors (haven't tested yet).

Cheers,
Jeremias Märki



RE: error handling

2002-06-17 Thread Ruane, Conleth
Don't know about UNIX but on Windows it seems that the return code is always 0.

Regards
Con

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Monday, June 17, 2002 08:23
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: error handling


You're right. The command line wrapper can and probably should delete
the target file in case of an error. Could you check if the return code
is set on the command line? If not, we should fix that.

   It is. The problem is that FOP can't delete the output file
  in case of a
   problem if it only gets an OutputStream. And for
  optimization reasons
   FOP can't wait until the end to write the output to the
  target stream.
 
  But does fop should delete output file? I don't think so, that's
  responsibility of enclosing application, which has full control of
  OutputStream and can easily do this being catching FOPException.
 
 All very well for embeddding, but the command prompt version still leaves
 the corrupt file there  no file at all would be preferable to a useless
 one.
 I hope the UNIX script sets the return code on errors (haven't tested yet).

Cheers,
Jeremias Märki



Re: error handling

2002-06-17 Thread Oleg Tkachenko
Roland Neilands wrote:
All very well for embeddding, but the command prompt version still leaves
the corrupt file there  no file at all would be preferable to a useless
one.
Well, I believe it's feasible, but anyway this behaviour should be 
parametrizable.
--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: error handling

2002-06-16 Thread Jeremias Maerki
It is. The problem is that FOP can't delete the output file in case of a
problem if it only gets an OutputStream. And for optimization reasons
FOP can't wait until the end to write the output to the target stream.

On 14.06.2002 21:21:48 Oleg Tkachenko wrote:
 Ruane, Conleth wrote:
  I'm using the latest version of FOP to automatically generate pdf files 
  from xml (what else) and I've noticed that when fop stops due to errors in 
  the input file(s) a corrupt pdf file is generated.
  Is there any way I can prevent this or is there any way I can access a FOP 
  exit  code so that I know that something went wrong.
  Currently my only option is to grep the output for errors and react on that.
  
  Any suggestions welcome.
 
 Driver's render() and run() methods are declared to throw FOPException - 
 is it not a correct way to report errors?
 
 -- 
 Oleg Tkachenko
 Multiconn International Ltd


Cheers,
Jeremias Maerki



Re: error handling

2002-06-16 Thread Oleg Tkachenko
Jeremias Maerki wrote:
It is. The problem is that FOP can't delete the output file in case of a
problem if it only gets an OutputStream. And for optimization reasons
FOP can't wait until the end to write the output to the target stream.
But does fop should delete output file? I don't think so, that's 
responsibility of enclosing application, which has full control of 
OutputStream and can easily do this being catching FOPException.

--
Oleg Tkachenko
Multiconn International Ltd


RE: error handling

2002-06-16 Thread Roland Neilands
  It is. The problem is that FOP can't delete the output file
 in case of a
  problem if it only gets an OutputStream. And for
 optimization reasons
  FOP can't wait until the end to write the output to the
 target stream.

 But does fop should delete output file? I don't think so, that's
 responsibility of enclosing application, which has full control of
 OutputStream and can easily do this being catching FOPException.

All very well for embeddding, but the command prompt version still leaves
the corrupt file there  no file at all would be preferable to a useless
one.
I hope the UNIX script sets the return code on errors (haven't tested yet).

Regards,
Roland



error handling

2002-06-14 Thread Ruane, Conleth
I'm using the latest version of FOP to automatically generate pdf files from 
xml (what else) and I've noticed that when fop stops due to errors in the input 
file(s) a corrupt pdf file is generated.
Is there any way I can prevent this or is there any way I can access a FOP exit 
 code so that I know that something went wrong.
Currently my only option is to grep the output for errors and react on that.

Any suggestions welcome.

Thanks

Con



Re: error handling

2002-06-14 Thread Oleg Tkachenko
Ruane, Conleth wrote:
I'm using the latest version of FOP to automatically generate pdf files from 
xml (what else) and I've noticed that when fop stops due to errors in the input 
file(s) a corrupt pdf file is generated.
Is there any way I can prevent this or is there any way I can access a FOP exit 
 code so that I know that something went wrong.
Currently my only option is to grep the output for errors and react on that.
Any suggestions welcome.
Driver's render() and run() methods are declared to throw FOPException - 
is it not a correct way to report errors?

--
Oleg Tkachenko
Multiconn International Ltd


Re: servlet called twice and subsequence error

2002-06-08 Thread Peter B. West
Louis,
To elaborate on this a bit. You have a page-master with some inherent 
limit on the number of pages it can produce. A page-sequence can refer, 
via master-reference, to either a simple-page-master or a 
page-sequence-master. The spec has, at 6.4.1.3 Page Generation:

Each fo:page-sequence references either an fo:page-sequence-master or a 
page-master. If the reference is to a page-master, this is interpreted 
as if it were a reference to an fo:page-sequence-master that repeats the 
referenced page-master an unbounded number of times. (The rest of this 
paragraph becomes ambiguous.)

So if (a) your page-sequence master-reference names a simple-page-master 
directly, that simple-page-master will be used repeatedly as long as any 
content remains in the fo:flow to be laid out. If (b) your page-sequence 
master-reference names a page-sequence-master, this automatic repetition 
is not in effect. If the page-sequence-master contains a 
simple-page-master-reference, the simple-page-master named in the 
simple-page-master-reference will be used only once. To obtain the same 
effect as (a) your page-sequence master would have to name a 
repeatable-page-master-reference with a maximum-repeats property set to 
no-limit. Fortunately, the default value for maximum-repeats is 
no-limit.

Take a look at Dave Pawson's tutorial (written with the assistance of 
Arved, Karen and Keiron, I believe) at 
http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html#d0e2601

Peter
J.Pietschmann wrote:
[EMAIL PROTECTED] wrote:
and I am
getting the following error:
ERROR [fop]:Page subsequences exhausted. Using previous subsequence.
This has nothing to do with the first problem. You have
an incomplete page master, check it.




servlet called twice and subsequence error

2002-06-07 Thread Louis . Masters
I'm running into the issue of the fop servlet being called twice and I am
getting the following error:

ERROR  [fop]:Page subsequences exhausted. Using previous subsequence.

Anyone have any ideas what this means?

Thanks,
Lou



Re: Again out of Memory Error -2

2002-06-05 Thread Balaji Loganathan
My xsl snippet.
   xsl:template match=/
 fo:root
 fo:layout-master-set
 ...
 /fo:layout-master-set
   fo:page-sequence master-reference=...
fo:static-content
  ...
fo:static-content
fo:flow
 !-- Table start --
 !-- Table header --
xsl:for-each select=codetest/detail
 !-- Table rows --
 xsl:value-of select=group/ ...
  ..
/xsl:for-each
 !-- Table end --
/fo:flow
  /fo:page-sequence
 /fo:root
   /xsl:template

my Xml snippet:

codetest
detail
group/
id/
sector/
quantity/ 
level/  
 .
 .
ANSI/
/detail
/codetest

Please give me some tips on going for multiple page
sequence.I'm having 1488 rows.



 --- Cyril Rognon [EMAIL PROTECTED] wrote:  I
suppose you are using FOP 0.20.3...
 Do you use as many page sequences as you can ?
 
 Long tables and long page sequences are known to
 increase the memory 
 requierments of FOP.
 error has nothing to do with xml. Xsl could be used
 to create additionnal 
 page sequences. List Archive shows you how.


http://www.sold.com.au - The Sold.com.au Big Brand Sale
- New PCs, notebooks, digital cameras, phones and more ... Sale ends June 12


Re: Again out of Memory Error -2

2002-06-05 Thread Cyril Rognon
Ok I'll try to answer both part 1 and 2 here :
as for the JVM memory parameter with servlet engines : Your servlet engine 
is executed in a JVM that must allow you to set memory parameters. I don't 
know about every ServletEngine or ApplicationServers but you can do this 
with Tomcat or Websphere so I guess it exists everywhere.

As for multiple page sequences, it is simply a fact that the current FOP 
implementation seems to keep a whole page sequence in memory before it 
writes it down. So the biggest bage sequence you have, the more heap size 
you need.

Therefore it can be helpfull to create separate page sequence anytime you 
can. In your case, it is the worst situation : one long table. You have to 
start and stop the table each time you want to change page-sequence. Some 
guy on the list had the same situation to deal with. He manage to have an 
average number of x row per pages. Then he twisted his XSLT stylesheet to 
take x rowData (detail element in your case) to build one page sequence 
containing one table with the x rows and so on.

He has ended with a 97 page-sequence document. This may be a little extreme 
but it works. The archive pointer I gave you does this trick.

In many case, you have to deal with many tables wich are not always 100 
pages long then you can place page-sequences every time you know you can 
have a page break.

I hope this helps.
Cyril


Re: Again out of Memory Error -2

2002-06-05 Thread Balaji Loganathan
Hi Cyril,
  Thanks a lot for replying.
   I'm using Tomcat 3.2,so I think there shd be
someway to imporve JVM heap size.
  Now I understood the multiple page sequence
advantage.I tried to change my to have XSLT to print
20 rows at a time,still coding/re-coding my XSLT to
get a good result and not yet completed.
  Since this is a one-off job,I converted my large XML
data to HTML,then I converted HTML to PDF using Adobe
distiller.So the task is done,but I'm half baked now
with my XSLT code.
 Thanks a lot for replying me at right time.
Regards
Balaji




 --- Cyril Rognon [EMAIL PROTECTED] wrote:  Ok
I'll try to answer both part 1 and 2 here :
 
 as for the JVM memory parameter with servlet engines
 : Your servlet engine 
 is executed in a JVM that must allow you to set
 memory parameters. I don't 
 know about every ServletEngine or ApplicationServers
 but you can do this 
 with Tomcat or Websphere so I guess it exists
 everywhere.
 
 As for multiple page sequences, it is simply a fact
 that the current FOP 
 implementation seems to keep a whole page sequence
 in memory before it 
 writes it down. So the biggest bage sequence you
 have, the more heap size 
 you need.
 
 Therefore it can be helpfull to create separate page
 sequence anytime you 
 can. In your case, it is the worst situation : one
 long table. You have to 
 start and stop the table each time you want to
 change page-sequence. Some 
 guy on the list had the same situation to deal with.
 He manage to have an 
 average number of x row per pages. Then he twisted
 his XSLT stylesheet to 
 take x rowData (detail element in your case) to
 build one page sequence 
 containing one table with the x rows and so on.
 
 He has ended with a 97 page-sequence document. This
 may be a little extreme 
 but it works. The archive pointer I gave you does
 this trick.
 
 In many case, you have to deal with many tables wich
 are not always 100 
 pages long then you can place page-sequences every
 time you know you can 
 have a page break.
 
 I hope this helps.
 
 Cyril
  

http://www.sold.com.au - The Sold.com.au Big Brand Sale
- New PCs, notebooks, digital cameras, phones and more ... Sale ends June 12


BMP-error and resolutions

2002-06-04 Thread Malin Norrstrand

Hello all!

I have two questions concerning Fop and PDF. 

1. In the fop specs it says that output images will have a resolution of
72 dpi. I have tried generating pdf with jpgs and gifs of both 72 dpi
and 600 dpi, and it seems like fop does not care about changing
resolution. Does anybody know how this works?

2. When trying to generate a pdf with a bmp image in it, I get an
exception. Does fop only support some types of bmp, and if so, which
ones? I have tried with screenshots and downloaded images, and some bmps
saved in Photoshop. The exception:

java.lang.ArrayIndexOutOfBoundsException
at org.apache.fop.image.BmpImage.loadImage(BmpImage.java:120)
at
org.apache.fop.image.AbstractFopImage.getBitmaps(AbstractFopImage.java:2
31)
at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:163)
at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1202)
at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:708)
at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:217)
at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:307)
at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser
.java:559)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceB
inder.java:853)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.
java:643)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValida
tor.java:2978)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.ja
va:918)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(X
MLDocumentFragmentScannerImpl.java:1145)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML
DocumentFragmentScannerImpl.java:988)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erConfiguration.java:529)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
erConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1148)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.run(Driver.java:554)
at
se.infologic.ibase.client.export.ExportXml.write(ExportXml.java:160)


Thanks!



Again out of Memory Error

2002-06-04 Thread Balaji Loganathan
Hi,
  Recently many people were discussing abt avoiding
out of memory error,I read previous threads but
couldn't able to find solution for me.
   Is this error related to Number of pages or input
xml size.Because i have a xml with 1588 group of
element,which i have to render into PDF in table
format.I can minimize the page size by reducing the
font size.At present its generating upto 51 pages then
it throwing out of memory error.
  Some constraints..
   1.I have to embedd a new font called Arial UniCode
MS(the ttf file size is 23mb) for Unicodes.
   2.in xsl:for loop,i have used xsl:choose with 15
xsl:when's.
So is the error is related to XML file size or number
of pdfpages or xsl coding style. ??
  
 I can send xslxml personally if needed to avoid
unnecessary bulking.
  Please suggests.

Regards
Balaji

http://www.sold.com.au - The Sold.com.au Big Brand Sale
- New PCs, notebooks, digital cameras, phones and more ... Sale ends June 12


Re: Again out of Memory Error

2002-06-04 Thread Cyril Rognon
I suppose you are using FOP 0.20.3...
first, what amount of memory do you give to FOP ? meaning do you use -Xms 
and -Xmx jvm parameters to give Java JVM the memory needed ?

Second please state how many tables there are in your document, and how 
many pages long the longest table is.

Do you use as many page sequences as you can ?
Long tables and long page sequences are known to increase the memory 
requierments of FOP.
error has nothing to do with xml. Xsl could be used to create additionnal 
page sequences. List Archive shows you how.

I hope that helps.
Cyril
At 00:26 05/06/2002 +1000, you wrote:
Hi,
  Recently many people were discussing abt avoiding
out of memory error,I read previous threads but
couldn't able to find solution for me.



FOP error with xsl:copy-of .../

2002-06-04 Thread normbishop1
  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; 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/



Re: FOP error with xsl:copy-of .../

2002-06-04 Thread Oleg Tkachenko
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; 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: FOP error with xsl:copy-of .../

2002-06-04 Thread normbishop1

Hi Oleg,

I am new to xsl-fo.  I thought I was doing the xsl-fo transformation correctly. 
 Will you PLEASE explaine me how I should do this?  
you have to transform it in xslt to fo objects, like fo:inline rather than 
just copying them to the fo.

Thank you
Norm

[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; 
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/



Re: FOP error with xsl:copy-of .../

2002-06-04 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I am new to xsl-fo.  I thought I was doing the xsl-fo transformation
 correctly. Will you PLEASE explaine me how I should do this?
Would you ask on rec.aviation Would you PLEASE
teach me how to fly aircraft (by email)?
Search the web for formatting object tutorial and
variants, there are some available. There is also the
XSL FAQ http://www.dpawson.co.uk/, but given your
activity on the XSL list you already discovered it.
Questions regarding transformation of arbitrary XML
into anything including XSLFO are best asked on the
XSL list anyway.
J.Pietschmann


Re: Need your HELP - Compile Error

2002-05-29 Thread Ali_Binus
Thanks J.Pietschmann ,
It's work.


Terima kasih,

Ali


- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 2:16 AM
Subject: Re: Need your HELP - Compile Error


[EMAIL PROTECTED] wrote:
 I am new in XMl and XSL, I want to produce PDF output from XML and XSL
using
 FOP. I tried to compile source code (Shakespearean Sonnet) that i found in
:

http://www-106.ibm.com/developerworks/education/transforming-xml/xmltopdf/in
 dex.html

 here are the result when i tried to compile :
 i attached xml, dtd and xsl source code  ---
 Please i need your advise 

The XSL file in question is defective. Perhaps it
has been corrupted during download.

 fo:page-sequence 

This elements requires a master reference attribute. Use
  fo:page-sequence master-reference=simple

fo:flow

This elements requires a flow name. Use
  fo:flow slow-name=xsl-region-body

There are more, non-fatal flaws. Try to use the
examples distributed with FOP.

J.Pietschmann








Re: Need your HELP - Compile Error

2002-05-29 Thread ewitness - Ben Fowler
At 9:16 pm +0200 28/5/02, J.Pietschmann wrote:
[EMAIL PROTECTED] wrote:
I am new in XMl and XSL, I want to produce PDF output from XML and XSL using
FOP. I tried to compile source code (Shakespearean Sonnet) that i found in :
http://www-106.ibm.com/developerworks/education/transforming-xml/xmltopdf/index.html


here are the result when i tried to compile :
i attached xml, dtd and xsl source code  ---
Please i need your advise 

The XSL file in question is defective. Perhaps it
has been corrupted during download.

fo:page-sequence 

This elements requires a master reference attribute. Use
 fo:page-sequence master-reference=simple

I don't think that it has been corrupted. I think that
it is out of date, and the XSL-FO specification has
changed. If memory serves, I sent feedback to the IBM
site, though I think that the author of those (otherwise
very well written pages) has moved on.

Ben.


Dynamic Image Results in Socket Error?

2002-05-29 Thread Rick Goeltz
FOP'ers:
We have an fo:external-graphic that fetches a dynamic image from a 
servlet.  On the first call, we get an error: java.net.SocketException: 
Connection aborted by peer: socket write error.  After that, evidently, 
FOP will call a second time and fetch the image.  It appears that on some 
architectures, the image generation fails completely.  Has anyone seen this 
problem?

Thanks!
Rick


Re: Dynamic Image Results in Socket Error?

2002-05-29 Thread Oleg Tkachenko
Rick Goeltz wrote:
We have an fo:external-graphic that fetches a dynamic image from a 
servlet.  On the first call, we get an error: java.net.SocketException: 
Connection aborted by peer: socket write error. 
Who is claiming that - fop or servlet ? Could you provide full exception 
trace? It seems like somebody closes connection unexpectedly.

--
Oleg Tkachenko
Multiconn International, Israel


Re: Dynamic Image Results in Socket Error?

2002-05-29 Thread Rick Goeltz
FOP'ers:
[Oleg Tkachenko said...]
 Who is claiming that - fop or servlet ?
Right, good question.  The socket exception was logged by the servlet.
[Jeremias Märki said...]
 Loading images in FOP is a two-stage process.
Ah, thank you so much.  Therefore, it is not an error to be solved.
I'd like describe what we have learned:
On Wintel, Tomcat 4, and JDK 1.4, there is no problem.
On Wintel, Tomcat 3.2, and JDK 1.3, Tomcat would crash (completely down and 
out).  We got lucky and found a USENET message that described a 
solution.  Rather than having com.sun.image.codec.jpeg.JPEGImageEncoder 
write the response, we get the bytes from the encoder and write the 
response ourselves.  Problem solved.

We have delivered to WebSphere on AIX and have missing charts but now I 
don't think it is a socket problem.

Thanks again for the help; it has saved us a lot of work and it is a relief 
to know what is going on.

Rick


Need your HELP - Compile Error

2002-05-28 Thread Ali_Binus
Dear all,

I am new in XMl and XSL, I want to produce PDF output from XML and XSL using
FOP. I tried to compile source code (Shakespearean Sonnet) that i found in :
http://www-106.ibm.com/developerworks/education/transforming-xml/xmltopdf/in
dex.html

here are the result when i tried to compile :
i attached xml, dtd and xsl source code  ---
Please i need your advise 

Terima kasih,
Ali
==
[DEBUG]: Input mode:
[DEBUG]: xslt transformation
[DEBUG]: xml input file: c:\ali\sonnet\xmlsonnet.xml
[DEBUG]: xslt stylesheet: c:\ali\sonnet\xslsonnet.xsl
[DEBUG]: Output mode:
[DEBUG]: pdf
[DEBUG]: output file: c:\ali\alis2.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:/c:/ali/sonnet/
[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[ERROR]:
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)

-

javax.xml.transform.TransformerException:
at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:137)
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)

-

javax.xml.transform.TransformerException:
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava, Compiled Code)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Unknown Source)
-
java.lang.NullPointerException:
at org.apache.fop.fo.flow.Flow.setFlowName(Flow.java:98)
at org.apache.fop.fo.flow.Flow.init(Flow.java:77)
at org.apache.fop.fo.flow.Flow$Maker.make(Flow.java:28)
at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)
at
org.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.jav
a:286)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:774)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:283)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java,
Compiled Code)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va, Compiled Code)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:193)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java, Compiled Code)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava, Compiled Code)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Unknown Source)

C:\Rsearch\bin\fop-0.20.3

===
?xml version=1.0?

!DOCTYPE sonnet SYSTEM sonnet.dtd
root type=Shakespearean
  author
last-nameShakespeare/last-name
first-nameWilliam/first-name
nationalityBritish/nationality
year-of-birth1564/year-of-birth
year-of-death1616/year-of-death
  /author
  titleSonnet 130/title
  lines
lineMy mistress' eyes are nothing like the sun,/line
lineCoral is far more red than her lips red./line
lineIf snow be white, why then her breasts are dun,/line
lineIf hairs be wires, black wires grow on her head./line
lineI have seen roses damasked, red and white,/line
lineBut no such roses see I in her cheeks./line
lineAnd in some perfumes is there more delight/line
lineThan in the breath that from my mistress reeks./line
lineI love to hear her speak, yet well I know/line
lineThat music hath a far more pleasing sound./line
lineI grant I never saw a goddess go,/line
lineMy mistress when she walks, treads on the ground./line
lineAnd yet, by Heaven, I think my love as rare/line
lineAs any she belied with false compare./line
  /lines
/root



sonnet.dtd
Description: Binary data

!-- 
A Shakespearean sonnet : 
1. Define stylesheet header
2. define page lay out
3. write title
4. write info abt author
5. create table to hold all the sonnet 
6. processing all the lines using color scheme	
--

xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 
		!--1. Define StyleSheet header--
		xsl:template match

RES: RES: Newbie: Error trying to convert (standalone) the simple .fo (worked!)

2002-05-17 Thread Gilson Nascimento D Elrei
  Thanks for ALL for your HELP... I have moved fop.jar to installation
root directory and (GREAT!) it's has worked now! ;-)
  Specially thanks for J.Pietschmann and  Patrick Chaumette for yours
suggestions.
  Cheers,
   
  Gilson.


 - Mensagem original -
 De:   J.Pietschmann [SMTP:[EMAIL PROTECTED]
 Enviada em:   quinta-feira, 16 de maio de 2002 19:23
 Para: [EMAIL PROTECTED]
 Assunto:  Re: RES: Newbie: Error trying to convert
 (standalone) the simple.fo e  xampl e after first installation...
 
 Gilson Nascimento D Elrei wrote:
  Thanks, i tried your first suggestion but i still didn't try rebuilding
  FOP.jar (i'll to do later).. i received this error. Do you know how
 resolve
  it ?
  
 Exception in thread main java.lang.NoClassDefFoundError:
 
 Umm, bad luck. Move or copy fop.jar into the FOP installation
 directory (where fop.bat and the stuff alreaddy are), and use
 
 java -jar fop.jar nnn.fo nnn.pdf
 
 This should avoid the problem above.
 
 J.Pietschmann


RES: Newbie: Error trying to convert (standalone) the simple.fo e xampl e after first installation...

2002-05-16 Thread Gilson Nascimento D Elrei
Thanks, i tried your first suggestion but i still didn't try rebuilding
FOP.jar (i'll to do later).. i received this error. Do you know how resolve
it ?

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/log/format/Formatter at org.apache.fop.apps.Fop.main(Fop.java:16)

Thanks in advance.

 - Mensagem original -
 De:   J.Pietschmann [SMTP:[EMAIL PROTECTED]
 Enviada em:   quarta-feira, 15 de maio de 2002 19:51
 Para: [EMAIL PROTECTED]
 Assunto:  Re: Newbie: Error trying to convert (standalone) the
 simple.fo exampl e after first installation...
 
 Gilson Nascimento D Elrei wrote:
  I have donwloaded and installed FOP, i tried to convert the simple.fo
 file
  using it like my first interaction with this tool, but i'm receiving
 this
  follow message error:
  
   [ERROR]: Don't know what to do with
 
 This is a known problem caused either by the DOS command processor
 or the JVM. It is specific to the 16bit Windows variants.
 Nobody has yet published a workaround, you'll have to experiment
 a bit by yourself. You can, for example, try
   java -jar bin\fop.jar nnn.fo nnn.pdf
 which might work (or not).
 If all else fails, get the source distribution, open
 the file src\org\apache\fop\apps\CommandLineOptions.java,
 kill the line throwing the exception wih the error
 message above and rebuild FOP.
 
 J.Pietschmann


AW: Newbie: Error trying to convert (standalone) the simple.fo ex ampl e after first installation...

2002-05-16 Thread Chaumette, Patrick
Hello Gilson,

the Exception means that the class org.apache.log.format.Formatter couldnt
be found in the Classpath.
Maybe you should check this.

Greetings,
Patrick

Dipl. Inform. Patrick Chaumette

T-Systems ITS GmbH

Service Prozesse Retail
Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen
Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen
Telefon: (0711)972-2437
Telefax: (0711)972-1949
E-Mail: [EMAIL PROTECTED]
Internet: http://www.t-systems.de



 -Ursprüngliche Nachricht-
 Von: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 16. Mai 2002 18:22
 An: '[EMAIL PROTECTED]'
 Betreff: RES: Newbie: Error trying to convert (standalone) 
 the simple.fo
 exampl e after first installation...
 
 
 Thanks, i tried your first suggestion but i still didn't try 
 rebuilding
 FOP.jar (i'll to do later).. i received this error. Do you 
 know how resolve
 it ?
 
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/log/format/Formatter at 
 org.apache.fop.apps.Fop.main(Fop.java:16)
 
 Thanks in advance.
 
  - Mensagem original -
  De: J.Pietschmann [SMTP:[EMAIL PROTECTED]
  Enviada em: quarta-feira, 15 de maio de 2002 19:51
  Para:   [EMAIL PROTECTED]
  Assunto:Re: Newbie: Error trying to convert 
 (standalone) the
  simple.fo exampl e after first installation...
  
  Gilson Nascimento D Elrei wrote:
   I have donwloaded and installed FOP, i tried to convert 
 the simple.fo
  file
   using it like my first interaction with this tool, but 
 i'm receiving
  this
   follow message error:
   
[ERROR]: Don't know what to do with
  
  This is a known problem caused either by the DOS command processor
  or the JVM. It is specific to the 16bit Windows variants.
  Nobody has yet published a workaround, you'll have to experiment
  a bit by yourself. You can, for example, try
java -jar bin\fop.jar nnn.fo nnn.pdf
  which might work (or not).
  If all else fails, get the source distribution, open
  the file src\org\apache\fop\apps\CommandLineOptions.java,
  kill the line throwing the exception wih the error
  message above and rebuild FOP.
  
  J.Pietschmann
 


Re: RES: Newbie: Error trying to convert (standalone) the simple.fo e xampl e after first installation...

2002-05-16 Thread J.Pietschmann
Gilson Nascimento D Elrei wrote:
Thanks, i tried your first suggestion but i still didn't try rebuilding
FOP.jar (i'll to do later).. i received this error. Do you know how resolve
it ?
Exception in thread main java.lang.NoClassDefFoundError:
Umm, bad luck. Move or copy fop.jar into the FOP installation
directory (where fop.bat and the stuff alreaddy are), and use
java -jar fop.jar nnn.fo nnn.pdf
This should avoid the problem above.
J.Pietschmann


Newbie: Error trying to convert (standalone) the simple.fo exampl e after first installation...

2002-05-15 Thread Gilson Nascimento D Elrei
Hello all,
I have donwloaded and installed FOP, i tried to convert the simple.fo file
using it like my first interaction with this tool, but i'm receiving this
follow message error:

 [ERROR]: Don't know what to do with

I have entered this lines on DOS Prompt of root FOP directory:

 FOP simple.fo simple.pdf

i tried another command...

 FOP -fo simple.fo -pdf simple.pdf

but i didn't get success...

I'm executing on Win98, in standalone mode (DOS command line).

Thanks for any help..

Gilson





RE: Newbie: Error trying to convert (standalone) the simple.fo example after first installation...

2002-05-15 Thread Roland Neilands
I did not find this part of the installation particularly userfriendly
either.

Try this fop.bat instead: sets CLASSPATH environment variable correctly 
can be run anywhere. (change the directory to your fop install first):

Failing this:
use -d option for debug mode
try docs\examples\runtests.bat

Regards,
Roland

-Original Message-
From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 15 May 2002 11:47 PM
To: '[EMAIL PROTECTED]'
Subject: Newbie: Error trying to convert (standalone) the simple.fo
example after first installation...


Hello all,
I have donwloaded and installed FOP, i tried to convert the simple.fo file
using it like my first interaction with this tool, but i'm receiving this
follow message error:

 [ERROR]: Don't know what to do with

I have entered this lines on DOS Prompt of root FOP directory:

 FOP simple.fo simple.pdf

i tried another command...

 FOP -fo simple.fo -pdf simple.pdf

but i didn't get success...

I'm executing on Win98, in standalone mode (DOS command line).

Thanks for any help..

Gilson

attachment: fop.bat


Re: Newbie: Error trying to convert (standalone) the simple.fo exampl e after first installation...

2002-05-15 Thread J.Pietschmann
Gilson Nascimento D Elrei wrote:
I have donwloaded and installed FOP, i tried to convert the simple.fo file
using it like my first interaction with this tool, but i'm receiving this
follow message error:
 [ERROR]: Don't know what to do with
This is a known problem caused either by the DOS command processor
or the JVM. It is specific to the 16bit Windows variants.
Nobody has yet published a workaround, you'll have to experiment
a bit by yourself. You can, for example, try
 java -jar bin\fop.jar nnn.fo nnn.pdf
which might work (or not).
If all else fails, get the source distribution, open
the file src\org\apache\fop\apps\CommandLineOptions.java,
kill the line throwing the exception wih the error
message above and rebuild FOP.
J.Pietschmann


RE: fop-0.20.3 Don't know what to do with error

2002-05-13 Thread DuCharme, Bob (LNG)
Odd. Did you try to call the same java command as in the .bat
file directly on the command line?

It's actually too long for the good old DOS command line, but when I added
the jar files to my CLASSPATH (before the existing entries) so that I
wouldn't have to include their names on the command file and then tried the
equivalent from the command line, I got the same result.

Is there some interference from some other Java executable
possible?

I tried blowing away my CLASSPATH and still got the same result. Is there
any other way to check for this?

thanks,

Bob


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Friday, May 10, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: fop-0.20.3 Don't know what to do with error


DuCharme, Bob (LNG) wrote:
 C:\tempjava TestC red green blue
 72 65 64
 67 72 65 65 6E
 62 6C 75 65

Odd. Did you try to call the same java command as in the .bat
file directly on the command line? It could be some issue
with the .bat file.
Is there some interference from some other Java executable
possible?


 Why wouldn't I have a problem using Fop-0.18.1-DEV if I'm using the same
JVM
 and Win98 command processor with that?

I'm not sure about 0.18, but 0.17 had a much simpler command
line processing, in particular there was no check for unaccounted
parameters which haunts us now.


J.Pietschmann


Re: fop-0.20.3 Don't know what to do with error

2002-05-13 Thread J.Pietschmann
DuCharme, Bob (LNG) wrote:
I tried blowing away my CLASSPATH and still got the same result. Is there
any other way to check for this?
I'm stumped. Perhaps it helps to rebuild FOP from source
on your machine. Just download the src distrib and run
build.bat. Would be interesting whether ant suffers from the
same problem.
If all else fails, remove the line throwing the exception
in srv/org/apache/fop/apps/CommandLineOptions.java:268.
I'll try to get my Win98 restored, but this is, well, labor
intensive, and there are some more pressing problems right
now.
J.Pietschmann


Re: fop-0.20.3 Don't know what to do with error

2002-05-10 Thread J.Pietschmann
DuCharme, Bob (LNG) wrote:
C:\tempjava TestC red green blue
72 65 64
67 72 65 65 6E
62 6C 75 65
Odd. Did you try to call the same java command as in the .bat
file directly on the command line? It could be some issue
with the .bat file.
Is there some interference from some other Java executable
possible?

Why wouldn't I have a problem using Fop-0.18.1-DEV if I'm using the same JVM
and Win98 command processor with that?
I'm not sure about 0.18, but 0.17 had a much simpler command
line processing, in particular there was no check for unaccounted
parameters which haunts us now.
J.Pietschmann


RE: fop-0.20.3 Don't know what to do with error

2002-05-09 Thread DuCharme, Bob (LNG)
You could help by running the following test program with one
or two arbitrary parameters and post the output.

Here you go...

C:\tempjava TestC red green blue
72 65 64
67 72 65 65 6E
62 6C 75 65

C:\tempjava TestC aaa aa a
61 61 61
61 61
61

Why wouldn't I have a problem using Fop-0.18.1-DEV if I'm using the same JVM
and Win98 command processor with that?

thanks,

Bob


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 08, 2002 5:24 PM
To: [EMAIL PROTECTED]
Subject: Re: fop-0.20.3 Don't know what to do with error


DuCharme, Bob (LNG) wrote:
 When I call the fop.bat that comes with fop-0.20.3 using a very simple
 hello world formatting object file in the same directory as fop.bat, I
get
 an error that says (in its entirety) Don't know what to do with no
matter
 what parameters I supply. This is under Win98, and the same fo input file
 works with the obvious parameters when I run it with the fop.bat in my
 Fop-0.18.1-DEV directory. 

The problem appears to be that the command line passed by
the Win98 command processor to the JVM contains some character
at the end which the JVM passes as additional parameter to
the Java code (possibly a CR).
This problem seems to be specific to the DOS based COMMAND.COM
included in Win95/98/ME and some JVM versions.

You could help by running the following test program with one
or two arbitrary parameters and post the output.

public class TestC {
   static final char[] hex={'0','1','2','3','4','5','6','7',
  '8','9','A','B','C','D','E','F'};
   static public void main(String[] arg) {
 for( int i=0;iarg.length;i++ ) {
   byte[] b=arg[i].getBytes();
   for( int j=0;jb.length;j++ ) {
 System.out.print(+hex[b[j]/16]+hex[b[j]%16]+' ');
   }
   System.out.println();
 }
   }
}

There is no workaround known to me, you'll have to experiment
by yourself a bit. Perhaps the problem goes away if you use
the command line from the batch file directly instead of the
file.

J.Pietschmann


Re: Out of Memory Error !!

2002-05-09 Thread Jeremias Maerki
The problem is probably your page-number-citation that looks up the last
page. This is well known to have impact on memory usage, because FOP can
render the first page only after the last page has been setup. It has to
wait until it knows how many pages your page-sequence has.

Take out the page-number-citation and look if the problems go away. I'm
pretty sure they will. That means you might have to live with page x
instead of page x of y for now.

On 09.05.2002 11:18:59 Abhijat Upadhyay wrote:
 hi there !!
 
 i am sending u the code of my XSL and XML... though the code might be 
 slightly 
 big but if u r able to find a solution to it then nothing like it... this set 
 of XSL and XML should be able to print around 300 - 500 pages but currently 
 it 
 prints hardly 40...
 
 THE XSL CODE: -
snip/
 Page #fo:page-number/ of xsl:value-of 
 select=$page-count/
snip/
 /xsl:stylesheet
 
 THE XML CODE: -
 library
 pagetitleList of Books/pagetitle
 book
   titleDiscovery of India/title
   authorPandit Jawaharlal Nehru/author
   publisherTata McGraw Hill/publisher
   cover type='paperback'/
   category class='historical'/
   isbn1-23-456-7890/isbn
   rating number='5'/
   commentsTells about history of India right from its birth/comments
 /book
 ... mutiple book tags are there and finally the closing tag i.e.
 /library
 
 Currently i want to print around 3000 - 4000 rows of in a table in the PDF... 
 but the total page count does not go beyond 40... actually it should go to 
 140... similarly if the number of rows increases then the number of pages 
 will 
 also increase.
 NOTE: - this is just anexample XML.


Cheers,
Jeremias Maerki



Out of Memory Error !!

2002-05-08 Thread Abhijat Upadhyay
hi there !!

i am getting out of memory error when i try to process a very large document 
containing a single fo:page-sequence tag a single fo:table tag. i have gone 
thru the mailing list looking for some solution to this problem but though the 
problems are similar i am not able to figure out the soluition in my case... as 
i cannot have more than one page-sequence to display my actual data... i want 
to know what can be done to get rid of this problem

if some how i am able to break this page-sequence then i will be able to get 
rid of this problem... kindly help me out with this problem as i am a novice in 
with this FOP stuff.. if any further info is required then send a mail a 
[EMAIL PROTECTED]

thanx

lotza cheers !!
Abhijat Upadhyay


Re: Out of Memory Error !!

2002-05-08 Thread Naveen_Rojanala

Hi Abhijit,
Looks like it might be in a recursive mode or something.
I am not totally aware of this kind or problem ,but how big is your
document ?

Are you using the combination of xml and xsl filer or just the fo file to
print out in PDF?

naveen




   
  Abhijat Upadhyay  
   
  abhijat.upadhyayTo:   '[EMAIL PROTECTED]' 
[EMAIL PROTECTED] 
  @patni.com  cc:  
   
   Subject:  Out of Memory Error !! 
   
  05/08/02 02:44 PM 
   
  Please respond to 
   
  fop-user  
   

   

   




hi there !!

i am getting out of memory error when i try to process a very large
document
containing a single fo:page-sequence tag a single fo:table tag. i have gone

thru the mailing list looking for some solution to this problem but though
the
problems are similar i am not able to figure out the soluition in my
case... as
i cannot have more than one page-sequence to display my actual data... i
want
to know what can be done to get rid of this problem

if some how i am able to break this page-sequence then i will be able to
get
rid of this problem... kindly help me out with this problem as i am a
novice in
with this FOP stuff.. if any further info is required then send a mail a
[EMAIL PROTECTED]

thanx

lotza cheers !!
Abhijat Upadhyay






fop-0.20.3 Don't know what to do with error

2002-05-08 Thread DuCharme, Bob (LNG)
When I call the fop.bat that comes with fop-0.20.3 using a very simple
hello world formatting object file in the same directory as fop.bat, I get
an error that says (in its entirety) Don't know what to do with no matter
what parameters I supply. This is under Win98, and the same fo input file
works with the obvious parameters when I run it with the fop.bat in my
Fop-0.18.1-DEV directory. 

I got the impression from another posting that getting jimi-1.0.jar would
fix it, so I copied the Fop-0.18.1-DEV\lib one to fop-0.20.3\lib directory
and that didn't help. I then got jimi1_0.zip from
http://java.sun.com/products/jimi/, but its only jar file is
JimiProClasses.jar. Anyway, according to
http://xml.apache.org/fop/relnotes.html, jimi is only needed for PNG
support, and the document has no pictures of any kind.

Does anyone know what the problem might be?

thanks,

Bob DuCharme  www.snee.com/bob   bob@  
snee.com  The elements be kind to thee, and make thy
spirits all of comfort! Anthony and Cleopatra, III ii



Re: fop-0.20.3 Don't know what to do with error

2002-05-08 Thread J.Pietschmann
DuCharme, Bob (LNG) wrote:
When I call the fop.bat that comes with fop-0.20.3 using a very simple
hello world formatting object file in the same directory as fop.bat, I get
an error that says (in its entirety) Don't know what to do with no matter
what parameters I supply. This is under Win98, and the same fo input file
works with the obvious parameters when I run it with the fop.bat in my
Fop-0.18.1-DEV directory. 

I got the impression from another posting that getting jimi-1.0.jar would
fix it,
Hardly.
The problem appears to be that the command line passed by
the Win98 command processor to the JVM contains some character
at the end which the JVM passes as additional parameter to
the Java code (possibly a CR).
This problem seems to be specific to the DOS based COMMAND.COM
included in Win95/98/ME and some JVM versions.
You could help by running the following test program with one
or two arbitrary parameters and post the output.
public class TestC {
  static final char[] hex={'0','1','2','3','4','5','6','7',
 '8','9','A','B','C','D','E','F'};
  static public void main(String[] arg) {
for( int i=0;iarg.length;i++ ) {
  byte[] b=arg[i].getBytes();
  for( int j=0;jb.length;j++ ) {
System.out.print(+hex[b[j]/16]+hex[b[j]%16]+' ');
  }
  System.out.println();
}
  }
}
There is no workaround known to me, you'll have to experiment
by yourself a bit. Perhaps the problem goes away if you use
the command line from the batch file directly instead of the
file.
J.Pietschmann


Re: [ERROR]: Don't know what to do with

2002-05-04 Thread Carlos Araya
Because of a licensing issue, you now need to download jimi-1.0.jar from the
sun website. Check the fop website for more information

Carlos
On 05/02/02 1:55, L'eau [EMAIL PROTECTED] wrote:

 Ok, so I had the time to download an old FOP version, and was
 glad to see it had a jimi-1.0.jar in it! It works to a degree. I
 did this:
 
 C:\xsl\buildFop list.fo list.pdf
 
 Now I get the following error message now:
 
 [ERROR]: Don't know what to do with
 
 .and that's it. It doesn't even tell me what it doesn't know
 what to do with. I'm stumped and baffled.
 
 Devon
 
 PS. who would I write to, to let Apache know that their latest
   FOP package is missing a jimi-1.0.jar? I can only imagine
   how many other people are having a problem and giving up.
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com




Re: [ERROR]: Don't know what to do with

2002-05-02 Thread jens
I had the same error message since I use fop 0.20.2 and later fop
0.20.3, but I had no problems with fop 0.20.1 and earlier versions. I
don't know what EXACTLY is the problem but the problem solved itself
after I changed my OS from Windows ME to Windows 2000 (using the SAME
UNMODIFIED fop installation!!!). Now it works fine.

L'eau [EMAIL PROTECTED] schrieb am 02.05.2002, 10:55:54:
 Ok, so I had the time to download an old FOP version, and was
 glad to see it had a jimi-1.0.jar in it! It works to a degree. I
 did this:
 
 C:\xsl\buildFop list.fo list.pdf
 
 Now I get the following error message now:
 
 [ERROR]: Don't know what to do with
 
 .and that's it. It doesn't even tell me what it doesn't know
 what to do with. I'm stumped and baffled.
 
 Devon
 
 PS. who would I write to, to let Apache know that their latest 
 FOP package is missing a jimi-1.0.jar? I can only imagine
 how many other people are having a problem and giving up.
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com


Re: [ERROR]: Don't know what to do with

2002-05-02 Thread L'eau
I'm glad I'm not the only one with this problem. Interesting you
noticed a problem when using it on Windows ME (i'm using that OS
myself). I just found Fop 0.20.1 works exactly as expected, but
Fop 0.20.3 still gives me that strange error. I'm not sure how
the OS could possibly affect a java program's ability to run
though. Anyway, I'd much prefer to use 0.20.3, but I'll have to
use the older version too until an update is made or something
is figured out.

Thank you all. I'm going to poke around the Apache site now and
figure out who to e-mail about the missing jimi-1.0.jar  the
way Windows ME affects 0.20.3.

Devon

--- [EMAIL PROTECTED] wrote:
 I had the same error message since I use fop 0.20.2 and later
 fop
 0.20.3, but I had no problems with fop 0.20.1 and earlier
 versions. I
 don't know what EXACTLY is the problem but the problem solved
 itself
 after I changed my OS from Windows ME to Windows 2000 (using
 the SAME
 UNMODIFIED fop installation!!!). Now it works fine.

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com


Re: [ERROR]: Don't know what to do with

2002-05-02 Thread Christian Geisert
L'eau wrote:
Ok, so I had the time to download an old FOP version, and was
glad to see it had a jimi-1.0.jar in it! It works to a degree. I
did this:
C:\xsl\buildFop list.fo list.pdf
Now I get the following error message now:
[ERROR]: Don't know what to do with
.and that's it. It doesn't even tell me what it doesn't know
what to do with. I'm stumped and baffled.
Strange, this error happens if you give three commandline arguments
and in your case this seems to be blank (really strange .. which
OS are you using?)
You could try fop list.fo list.pdf (with quotes)
Devon
PS. who would I write to, to let Apache know that their latest 
This is the appropriate place but we had to remove jimi because we
are not allowed to distribute it (it is mentioned in the release notes!)
FOP package is missing a jimi-1.0.jar? I can only imagine
how many other people are having a problem and giving up.
Christian


Re: [ERROR]: Don't know what to do with

2002-05-02 Thread Jens Khnberger
did you try C:\xsl\buildFop -fo list.fo -pdf list.pdf ?
Christian Geisert wrote:
L'eau wrote:
Ok, so I had the time to download an old FOP version, and was
glad to see it had a jimi-1.0.jar in it! It works to a degree. I
did this:
C:\xsl\buildFop list.fo list.pdf
Now I get the following error message now:
[ERROR]: Don't know what to do with
.and that's it. It doesn't even tell me what it doesn't know
what to do with. I'm stumped and baffled.

Strange, this error happens if you give three commandline arguments
and in your case this seems to be blank (really strange .. which
OS are you using?)
You could try fop list.fo list.pdf (with quotes)
Devon
PS. who would I write to, to let Apache know that their latest 

This is the appropriate place but we had to remove jimi because we
are not allowed to distribute it (it is mentioned in the release notes!)
FOP package is missing a jimi-1.0.jar? I can only imagine
how many other people are having a problem and giving up.

Christian





Re: [ERROR]: Don't know what to do with

2002-05-02 Thread J.Pietschmann
Christian Geisert wrote:
You could try fop list.fo list.pdf (with quotes)
Not a very good idea on Win95/98/ME (or any other system), it
searches for a command file
 fop list.fo list.pdf.exe
(with spaces)
On Win95/98/ME, the command processor feeds the whole command
line in one piece to the applications, therefore the JRE parses
the command line. Either there is a bug in the parser, or the
command processor appends some ugly invisible character. It's
been years since i last delat with DOS based systems, but I
believe the command line gets a \r\n ant the end, perhaps
the JRE doesn't count the \r as white space and passes it as
parameter.
It would help to run a test program to see what happens:
public class TestC {
  static final char[] hex={'0','1','2','3','4','5','6','7',
 '8','9','A','B','C','D','E','F'};
  static public void main(String[] arg) {
for( int i=0;iarg.length;i++ ) {
  byte[] b=arg[i].getBytes();
  for( int j=0;jb.length;j++ ) {
System.out.print(+hex[b[j]/16]+hex[b[j]%16]+' ');
  }
  System.out.println();
}
  }
}
J.Pietschmann


[xsl] XSLTInputHandler error

2002-05-01 Thread pandianoliver
Hi Gurus, 
I have been struggling with the convertion to PDF using FOP. It was working 
well for the past few weeks and all of a sudden I am getting this exception 
error and I have tried everything I could think of.  Now, I am seeking for your 
help  The exception error occurs on the call to XMLReader 
p=ih.getParser(); 
I have tried both the fop versions 0.20.3 and 0.20.1.  both are producing the 
same error. 

Please help me get going! 

Thank you 
 

Oliver 


__
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/



[ERROR]: Can't add attribute to 0-length text

2002-04-30 Thread Henrik Holle
[INFO]: Parsing of document complete, stopping renderer
[ERROR]: Can't add attribute to 0-length text


it is very strange.

my fo is working fine with the  pdf render, but the awt render throws this
error ??
any ideas ?



error generating font metrics file

2002-04-20 Thread Randall J. Parr
Have FOP 0.20.3 installed and have successfully used it to convert
various FO to PDF (including the examples).
Trying to install another font.
Following instructions at xml/apache.org/fop/fonts.html
I run the following small script
---
FOPHOME=/java/java/Apache/fop
LOCALCLASSPATH=\
${FOPHOME}/build/fop.jar\
:${FOPHOME}/lib/xerces.jar\
:${FOPHOME}/lib/xalan.jar\
:${FOPHOME}/lib/batik.jar\
java -cp ${LOCALCLASSPATH} org.apache.fop.fonts.apps.PFMReader $*
--
$ mkfopfont go01bjsa.pfm go01bjsa.xml
Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/xml/serialize/BaseMarkupSerializer

Is this a known problem?
Am I doing something wrong?
I apologize for asking a question that has probably been asked 100 times
BUT there doesn't seem to be any working archives for this list.
What's up with that?
R.Parr
TemporalArts



Re: java/util/HashMap error

2002-04-19 Thread Mathy V Arumugam
This is what I have in my java file to generate a PDF file:
Logger log;
Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
log = hierarchy.getLoggerFor(fop);
log.setPriority(Priority.WARN);
Driver dr=new Driver();// *  this is where it is failing
**
dr.setLogger(log);
dr.setRenderer(Driver.RENDER_PDF);
InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
XMLReader p=ih.getParser();
dr.setOutputStream(new FileOutputStream(pdfFile));
dr.render(p,ih.getInputSource());

Mathy V Arumugam wrote:

 What can I do to get rid of the following error?  I am using JDK1.3...

 java.lang.NoClassDefFoundError: java/util/HashMap
  at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:85)

 Thanks
 Mathy



Help with [ERROR]: null

2002-04-17 Thread Kilmer, Erich
Hello, I am trying to get this style sheet to render using FOP but the error
it is throwing is fairly vague. Can anyone advise  me how I can debug this?
I am referencing an XML file but not actually accessing any values from it
so its not from that.
I am using FOP 0.20.3.
Thanks,
Erich

Fop output:
[INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: null
...post processing finished

Style Sheet:

?xml version=1.0 encoding=utf-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:TST=TST
xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java
xsl:output indent=no/
xsl:template match=text()/
xsl:template match=EROUTE
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set

fo:simple-page-master
master-name=page-first page-height=11in page-width=8.5in
margin-top=.5in margin-bottom=.5in margin-left=.5in
margin-right=.5in
fo:region-body margin-top=4in
region-name=content/
fo:region-before extent=3in
region-name=header-first/
fo:region-after extent=4in
region-name=footer-first/
/fo:simple-page-master

fo:simple-page-master
master-name=page-rest page-height=11in page-width=8.5in
margin-top=.5in margin-bottom=.5in margin-left=.5in
margin-right=.5in
fo:region-body margin-top=1in
region-name=content/
fo:region-before extent=1in
region-name=header-rest/
fo:region-after extent=1.5in
region-name=footer-rest/
/fo:simple-page-master

fo:page-sequence-master master-name=control-page
   fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference
page-position=first master-name=page-first/
  fo:conditional-page-master-reference page-position=rest
master-name=page-rest/
  fo:conditional-page-master-reference
master-name=page-rest/
   /fo:repeatable-page-master-alternatives
/fo:page-sequence-master

/fo:layout-master-set

 fo:page-sequence master-reference=control-page

fo:static-content flow-name=header-first
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textHeader
First/xsl:text/fo:block
/fo:static-content

fo:static-content flow-name=header-rest
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textHeader
Rest/xsl:text/fo:block
/fo:static-content

fo:static-content flow-name=footer-first
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textFooter
First/xsl:text/fo:block
/fo:static-content

fo:static-content flow-name=footer-rest
fo:block text-align-last=center
font-weight=bold font-size=10ptxsl:textFooter
Rest/xsl:text/fo:block
/fo:static-content

fo:flow flow-name=content
   xsl:textContent goes here!/xsl:text
/fo:flow


 /fo:page-sequence

/fo:root  
   /xsl:template
/xsl:stylesheet




<    1   2   3   4   5   >