FAQ on embedded PDF viewing in IE

2003-05-05 Thread Matthew
On http://xml.apache.org/fop/embedding.html#servlet it says,
	Some versions of Internet Explorer will not automatically show the 
PDF. [...] appending '.pdf' to the end of the URL may help.

You probably already know this, but IE will disregard the url filename 
extension if you use this http header,

Content-Disposition: inline; filename=something.pdf
I use this in addition to the ContentType of application/pdf.
Ta,
.Matthew Cruickshank
http://holloway.co.nz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FAQ on embedded PDF viewing in IE

2003-05-05 Thread Victor Mote
Matthew Cruickshank wrote:

 You probably already know this, but IE will disregard the url filename
 extension if you use this http header,

   Content-Disposition: inline; filename=something.pdf

 I use this in addition to the ContentType of application/pdf.

So, to implement this in the example servlet that the web page references,
would you suggest the following patch?

After line 137:
response.setContentType(application/pdf);
Add line 138:
response.setHeader(Content-Disposition, inline;
filename=\something.pdf\);

Victor Mote


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



RE: XSL GUI designer with FOP or other engine

2003-05-05 Thread Kielen, Agnes
Title: RE: XSL GUI designer with FOP or other engine





Hi,


Try this one http://www.rubico.com
I wasn't that impressed though.


Cheers,
Agnes


-Original Message-
From: Michael Reiche [mailto:[EMAIL PROTECTED]]
Sent: donderdag 1 mei 2003 20:31
To: [EMAIL PROTECTED]
Subject: XSL GUI designer with FOP or other engine



Anyone using a GUI designer with FOP?


Or possible with another XSL-FO renderer?




-- 
Michael Reiche [EMAIL PROTECTED]



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





Problem rendering SVG

2003-05-05 Thread Ozhan Hassan
Hi,

I am experiencing some a weird problem while trying to render some SVG.
I have a simple java program which reads in an XML file and an XSLT
stylesheet (containing some SVG) and render it out to PDF. What happens is
my terminal just frezzes, and I can't kill the process or do anything
else. The process only hangs when I run my application, i.e. if I run fop
from the command line passing it the XSLT with the SVG, it works fine.

Here is SVG from the XSLT style sheet:

xsl:template name=DisplaySvg
fo:instream-foreign-object
svg:svg xmlns:svg=http://www.w3.org/2000/svg; 
width = 300 height=200 viewBox=0 0 300 200 
xml:space=preserve
  svg:g style=fill:white; stroke:#00
 svg:line x1=0 y1=200 x2=0 y2=0/
 svg:line x1=0 y1=200 x2=200 y2=200/
 svg:rect x=10 y=150 width=20 height=50 
style=fill:blue; stroke:#00/
 svg:rect x=40 y=170 width=20 height=30 
style=fill:black; stroke:#00/
 svg:rect x=70 y=100 width=20 height=100 
style=fill:green; stroke:#00/
 svg:rect x=100 y=20 width=20 height=180 
style=fill:yellow; stroke:#00/
 svg:rect x=130 y=150 width=20 height=50 
style=fill:red; stroke:#00/
  /svg:g
/svg:svg
/fo:instream-foreign-object
/xsl:template 

---

The my java application which does what I explained above is:

import java.io.*;

// FOP libraries
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.messaging.MessageHandler;

import org.xml.sax.InputSource;
import org.apache.fop.apps.FOPException;

import org.apache.avalon.framework.logger.ConsoleLogger;  
import org.apache.avalon.framework.logger.Logger; 

import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import javax.xml.transform.sax.*;


class RenderingEngineXsltSvg
{

// number of PDFs to be generated
static final int OUTPUT_SIZE = 1;
static final String INPUT_XML = statement.xml;
static final String INPUT_XSLT = toXslFoSVG.xslt;
static final String INPUT_DIR = ../../tmp/input/;
static final String OUTPUT_DIR = ../../tmp/output/;


public static void main(String args[])
{
try
{
// only create the Transformer which reads the XSLT once
Transformer transformer = TransformerFactory.newInstance()
.newTransformer(new StreamSource(INPUT_DIR + INPUT_XSLT));

for(int i = 1; i = OUTPUT_SIZE; i++)
{
String fileName = INPUT_XML;
int fileLength = fileName.length();

fileName = fileName.substring(0, fileLength - 4);
String outFileName = OUTPUT_DIR + fileName + i + .pdf;

Driver driver = new Driver();
driver.setOutputStream(new
FileOutputStream(outFileName));
Logger logger = new
ConsoleLogger(ConsoleLogger.LEVEL_INFO);
MessageHandler.setScreenLogger(logger);
driver.setLogger(logger);
driver.setRenderer(Driver.RENDER_PDF);

transformer.transform(new 
StreamSource(INPUT_DIR + INPUT_XML),
new SAXResult(driver.getContentHandler()));

System.out.println(* GENERATED PDF:  + i + 
*);
}
}
catch (javax.xml.transform.TransformerConfigurationException ex)
{
System.err.println(Exception:  + ex.toString());
}
catch (javax.xml.transform.TransformerException ex)
{
System.err.println(Exception:  + ex.toString());
}
catch (IOException ex)
{
System.err.println(IO Exception:  + ex.toString());
}

// Everything is OK - exit
System.exit(0);
}
}

---

Any help would be appreciated.

Regards,
Ozhan


Ozhan Hassan
Multimedia Database Systems
RMIT University
Email: [EMAIL PROTECTED]
Phone: 9925 4118


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



Error building hyphenation tree for language de

2003-05-05 Thread Todtenhaupt, Susann
Hello @ all!

I'm using fop v. 0.20.5rc2. The transformation of my xml-file with a
xsl-stylesheet is running with the provided xalan.jar and xerces.jar. The
transformation into a fo-file works stable, but fop throws an exception as
following:
 Error building hyphenation tree for language de
  Couldn't find hyphenation pattern de

Greetz suse


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



Re: any new FOP releases on the horizon?

2003-05-05 Thread Jeremias Maerki
0.20.5rc3 will arrive shortly. The last few things are being sorted out.

On 01.05.2003 22:53:04 Robert P. J. Day wrote:
   given the time period between rc and rc2, it would seem that
 another release might be warranted about now.  any hints?


Jeremias Maerki


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



Re: exit command for xsl:for-each

2003-05-05 Thread Magnus Sjöberg
The simple answer is: You don't, because you can't (at least 
not using for-each)

Depending on your needs you might be able to do it using 
recursion. Using named templates and recursion it is 
possible to create constructs similar to for- and 
while-loops. See 
http://www.xml.com/lpt/a/2001/08/01/gettingloopy.html for a 
good discussion of this.

hth//
Magnus Sjöberg
[EMAIL PROTECTED] wrote:
Hi @ all
[ENGLISH]
Does somewon knows, how i can stop or terminate an xsl:for-each loop?
[GERMAN]
Weiss jemand, wie ich eine xsl:for-each Schlaufe stoppen oder beenden
kann?
THX
Elmar Hurni
Web Technologies  Applications

___
 
Diese E-Mail ist nur fuer die als Empfaenger genannte Person oder Gesellschaft bestimmt. Wenn Sie diese
E-Mail irrtuemlich erhalten haben, bitten wir Sie, den Absender zu benachrichtigen und die E-Mail auf Ihrem
Computersystem zu loeschen.
___
 

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



smime.p7s
Description: S/MIME Cryptographic Signature


mif generation

2003-05-05 Thread stephane . peyronny
Hello,

I need to generate mif files.
I run my script and I always got a JavaNullPointerException when the file I
want to convert contains tables.

Could someone help me?

S. Peyronny


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



Re: any new FOP releases on the horizon?

2003-05-05 Thread Robert P. J. Day
On Mon, 5 May 2003, Jeremias Maerki wrote:

 0.20.5rc3 will arrive shortly. The last few things are being sorted out.

cool.  i was about to launch into a major project using FOP,
but if a new version will be out in, say, the next few days(?),
i'll hold off.

rday


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



RE: FAQ on embedded PDF viewing in IE

2003-05-05 Thread Matthew Cruickshank
So, to implement this in the example servlet that the web page
references, would you suggest the following patch?

I program but don't know Java. If it's a key/value pair then what you
wrote looks exactly right.

Adding this header fixed my problems in IE4+.


.Matthew Cruickshank
http://holloway.co.nz


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



Re: exit command for xsl:for-each

2003-05-05 Thread jaccoud

for-each is not an iteration structure, although you can think that if you
as accustomed to C's for loop. When a for-each structure is entered, each
node in the node-set is processed using the same template, and the results
are concatenated in the same order. The node processing may happen in
parallel, in as many threads as the processor chooses to. Of course, the
processor may choose to do it with a single thread, and process each node
sequentially, but you cannot force this (why would one de-optimize the
processing?). This is why there is no way to 'stop' the iteration -- there
is none.

If you want to iterate, do it with a recursive template. That's the way to
do it in functional programming languages like XSLT. You can thus exert
full control over the iteration.

=
Marcelo Jaccoud Amaral
Petrobrás (http://www.petrobras.com.br)
mailto:[EMAIL PROTECTED]
=
There are only 10 kinds of people in the world: those who understand binary
and those who don't.





   
  [EMAIL PROTECTED] 
   
  hPara: [EMAIL PROTECTED]  
 
   cc:  
   
  05/05/2003 06:35 Assunto:  exit command for 
xsl:for-each   
  Favor responder a 
   
  fop-user  
   

   

   




Hi @ all

[ENGLISH]
Does somewon knows, how i can stop or terminate an xsl:for-each loop?

[GERMAN]
Weiss jemand, wie ich eine xsl:for-each Schlaufe stoppen oder beenden
kann?

THX
Elmar Hurni
Web Technologies  Applications




___


Diese E-Mail ist nur fuer die als Empfaenger genannte Person oder
Gesellschaft bestimmt. Wenn Sie diese
E-Mail irrtuemlich erhalten haben, bitten wir Sie, den Absender zu
benachrichtigen und die E-Mail auf Ihrem
Computersystem zu loeschen.
___




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



Variable Template Name

2003-05-05 Thread Elmar . Hurni
Hi

Thx again for the help of the previous problem. I solved the problem in
another way.

But i have a new problem.
Does someone know a solution?

Problem:

xsl:variable name=templateNameobjectives/xsl:variable

xsl:call-template name=$templateName/

The variable templateName is a Value, wich is read from a XML.
The $templateName in call-template does not dissolve.

Elmar Hurni
Web Technologies  Applications




___
 
Diese E-Mail ist nur fuer die als Empfaenger genannte Person oder Gesellschaft 
bestimmt. Wenn Sie diese
E-Mail irrtuemlich erhalten haben, bitten wir Sie, den Absender zu 
benachrichtigen und die E-Mail auf Ihrem
Computersystem zu loeschen.
___
 


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



RE: mif generation

2003-05-05 Thread Rob Stote
Title: RE: mif generation





Stephane:


 You'll have to be a little more specific. You might want to post the stack trace, if there is one. You have to narrow down where the error is occurring. Try commenting out certain sections of your style sheet, to see if it is indeed you table causing the problem.

Rob



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 05, 2003 7:40 AM
To: [EMAIL PROTECTED]
Subject: mif generation


Hello,


I need to generate mif files.
I run my script and I always got a JavaNullPointerException when the file I
want to convert contains tables.


Could someone help me?


S. Peyronny



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





RE: Variable Template Name

2003-05-05 Thread David Neary

 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 But i have a new problem.
 Does someone know a solution?

I have had the same problem, and I have solved it in a slightly different
way.

 Problem:
   
   xsl:variable name=templateNameobjectives/xsl:variable
 
   xsl:call-template name=$templateName/
 The variable templateName is a Value, wich is read from a XML.
 The $templateName in call-template does not dissolve.

Yup - this is because the argument to call-template is a QName, that is, the
name of a tag, rather than an XPath expression. 

In my problem, the solution was rather simple. I had something like this in
the xml...

root
  node mode=mode1
  node mode=mode2
  node mode=mode1
  node mode=mode3
  node mode=mode4
/root

And I ended up just doing this...

xsl:template match=/
  xsl:apply-templates select=root/node/
/xsl:template

xsl:template match=[EMAIL PROTECTED]'mode1']
  Mode 1
/xsl:template

xsl:template match=[EMAIL PROTECTED]'mode2']
  Mode 2
/xsl:template

xsl:template match=[EMAIL PROTECTED]'mode3']
  Mode 3
/xsl:template

xsl:template match=[EMAIL PROTECTED]'mode4']
  Mode 4
/xsl:template

I'm assuming that you can in some way modify your xml to use attributes
rather than parameters to get to the right template.


Hope this helps,
Dave.

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



Re: any new FOP releases on the horizon?

2003-05-05 Thread Clay Leeds
Robert,

Robert P. J. Day wrote:
 On Mon, 5 May 2003, Jeremias Maerki wrote:


0.20.5rc3 will arrive shortly. The last few things are being sorted out.

 cool.  i was about to launch into a major project using FOP,
 but if a new version will be out in, say, the next few days(?),
 i'll hold off.

We almost made the mistake of waiting for the next release candidate
(rc3, in fact), and we're glad we didn't. One project was briefly put on
hold for 0.20.5rc3 at the end of February (rc3 was hinted at a release
Feb 28  our project release date was early March). Unfortunately, rc3
was put on hold. At the time, I believe it was primarily due to the hope
that licensing issues with the hyphenation dictionaries would quickly be
resolved. Since we'd done our testing with 0.20.4  0.20.5rc2, it wasn't
difficult to scale back to 0.20.4 (there were serious problems with a
duplicate content bug in rc2). In the end, our client followed my
recommendations against waiting for rc3. We are pleased with that decision.

If FOP rc3 still awaits licensing issues, there are no guarantees when
it'll be released. There've been predictions when rc3 will be released,
but as is usually the case with project release dates, regarding rc3 all
have past. My company doesn't currently use hyphenation, so if the delay
were due to waiting for hyphenation licenses, it would be particularly
frustrating (ignorance can be bliss). I suspect (hope?) there are other
reasons why rc3 is being held up.

As others have heard (rant?) before, since rc3 has release candidate
as its middle name, one would think it would've been released by now so
we can put it through the paces and make certain 0.20.5 is bug-free.
After all, 0.20.5 is rumored to be the last release of the maintenance
branch. Arguably, it'll be months (6+?) before we see a usable release
from the trunk. Even then, there's no guarantee it will be able to
produce the same beautiful results as 0.20.5.

As always, eager to help, and looking forward to rc3...

Respectfully,
-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



RE: FAQ on embedded PDF viewing in IE

2003-05-05 Thread Victor Mote
Matthew Cruickshank wrote:

 So, to implement this in the example servlet that the web page
 references, would you suggest the following patch?

 I program but don't know Java. If it's a key/value pair then what you
 wrote looks exactly right.

 Adding this header fixed my problems in IE4+.

I don't have a convenient way to test this stuff. Would someone on this list
who uses FOP in a servlet be so kind as to test the proposed patch (see
previous messages in this thread), and let us know whether it solves the
problem? Thanks.

Victor Mote


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



Re: FAQ on embedded PDF viewing in IE

2003-05-05 Thread Jeremias Maerki
I've just tried it with Tomcat 4.1.18. It doesn't help. Only appending
ext=.pdf to the calling URL brings Acrobat Reader up.

On 05.05.2003 19:09:30 Victor Mote wrote:
 Matthew Cruickshank wrote:
 
  So, to implement this in the example servlet that the web page
  references, would you suggest the following patch?
 
  I program but don't know Java. If it's a key/value pair then what you
  wrote looks exactly right.
 
  Adding this header fixed my problems in IE4+.
 
 I don't have a convenient way to test this stuff. Would someone on this list
 who uses FOP in a servlet be so kind as to test the proposed patch (see
 previous messages in this thread), and let us know whether it solves the
 problem? Thanks.


Jeremias Maerki


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



Re: mif generation

2003-05-05 Thread Jeremias Maerki
Disclaimer: I'm not familiar with the MIF format.

I can reproduce what you said. Here's the exception:

 java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
 at java.util.ArrayList.RangeCheck(ArrayList.java:508)
 at java.util.ArrayList.get(ArrayList.java:320)
 at 
 org.apache.fop.mif.MIFDocument$TextFlow.curPara(MIFDocument.java:442)
 at org.apache.fop.mif.MIFDocument.createTable(MIFDocument.java:1089)
 at 
 org.apache.fop.render.mif.MIFRenderer.renderAreaContainer(MIFRenderer.java:145)

Looking at the source code of MIFDocument.java (method curPara())
there's likely to be an IndexOutOfBoundsException if paras (an ArrayList)
has zero elements. There's a check needed. Since I fear we have no
active committers who know MIF well enough (and have spare time), I
suggest you try to fix the bug yourself.

On 05.05.2003 12:40:12 stephane.peyronny wrote:
 I need to generate mif files.
 I run my script and I always got a JavaNullPointerException when the file I
 want to convert contains tables.
 
 Could someone help me?


Jeremias Maerki


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



Re: FAQ on embedded PDF viewing in IE

2003-05-05 Thread J.Pietschmann
Victor Mote wrote:
I don't have a convenient way to test this stuff. Would someone on this list
who uses FOP in a servlet be so kind as to test the proposed patch (see
previous messages in this thread), and let us know whether it solves the
problem? Thanks.
The problem is that various IEx versions and even different builds
of the same version are said to exhibit different behaviour, and
a higher version/build number doesn't necessarily mean a more
standard conformant behaviour. It's likely that different people
will still have different results depending on from whatever CD
they installed their IEx.
Whoever invented the disregard the server's claims about content
type and stuff and let's do our own guess behaviour should be
burnt at a stake.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Variable Template Name

2003-05-05 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Problem:

xsl:variable name=templateNameobjectives/xsl:variable
	xsl:call-template name=$templateName/
You can't do this, the value of the name attribute must be a
NC name. You can achieve the effect of dynamic dispatching
by using proper a xsl:apply-templates.
This kind of questions is best asked on the XSL list
  http://www.mulberrytech.com/xsl/xsl-list/
This list is dedicated to XSLT and XSLFO in general, rahter
than on using FOP. THere's also a FAQ reachable from the
URL above.
Last note: When learning a new technology it is best to
take at least an introductionary class or read a good
book (see FOP ressources page) rather than resorting to
wild ass guessing. A few days spent for proper education
are easily covered by much higher productivity later.
J.Pietschmann

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


Problem with FOPServlet

2003-05-05 Thread Kyle Koss
I have been having problems getting the FOPServlet to work. I am using
fop 0.20.5rc2 on Resin 2.1, runnin on a Linux box. I am dynamically
creating XML files and passing them to the FOPServlet to return a PDF to
the browser but I keep getting an error. I looked at the FAQ, and
searched the archives, but found no help. 

I had a problem with it earlier where it wasn't using the right parser,
because Resin comes with its own parser. But by adding some system
properties to my web.xml, was able to get it to use xerces parser.

The document is about ten pages of forms with a lot of SVG. It seems to
start processing, but then throws this error:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
ment.java:62)
at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053)
at
org.apache.fop.svg.PDFGraphics2D.init(PDFGraphics2D.java:1363)
at
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java
:561)
at
org.apache.fop.render.pdf.PDFRenderer.drawImageScaled(PDFRenderer.java:3
03)
at
org.apache.fop.render.AbstractRenderer.renderImageArea(AbstractRenderer.
java:283)
at org.apache.fop.image.ImageArea.render(ImageArea.java:65)
at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j
ava:481)
at org.apache.fop.layout.LineArea.render(LineArea.java:320)
at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:442)
at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:442)
at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:442)
at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:29)
at
org.apache.fop.render.AbstractRenderer.renderSpanArea(AbstractRenderer.j
ava:57)
at org.apache.fop.layout.SpanArea.render(SpanArea.java:52)
at
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(AbstractR
enderer.java:325)
at
org.apache.fop.layout.BodyAreaContainer.render(BodyAreaContainer.java:98
)
at
org.apache.fop.render.AbstractRenderer.renderRegions(AbstractRenderer.ja
va:494)
at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:837)
at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:813)
at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:258)
at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:68)
at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:359
)
at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand
ler.java:307)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:684)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApplyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2182)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2008)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Transfor
merHandlerImpl.java:433)
at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
at

RE: Problem with FOPServlet

2003-05-05 Thread Victor Mote
Kyle Koss wrote:

 The document is about ten pages of forms with a lot of SVG. It seems to
 start processing, but then throws this error:
 
 java.lang.NoClassDefFoundError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at
 java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
 ment.java:62)
   at

You can't use SVG in a headless environment. Here is the FAQ:
http://xml.apache.org/fop/faq.html#svg-headless

Victor Mote

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



Re: Problem with FOPServlet

2003-05-05 Thread Clay Leeds
Kyle,

Kyle Koss [EMAIL PROTECTED] wrote ..
 java.lang.NoClassDefFoundError

This could relate to this FAQ:
http://xml.apache.org/fop/faq.html#NoClassDefFound

This is typically a problem with your classpath.

You'll find a bit more info at the FAQ page.

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc

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