Re: colspan-type feature

2001-09-26 Thread Enrico Schnepel

number-rows-spanned is supported. I am already using it.

Enrico

Am Mittwoch, 26. September 2001 01:46 schrieben Sie:
 is this what you're after, Amit?

 fo:table-cell number-columns-spanned=3

 i don't think number-rows-spanned is supported though, but i could be
 wrong.


 mic.

 -Original Message-
 From: Amit [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 26 September 2001 7:37
 To: [EMAIL PROTECTED]
 Subject: colspan-type feature


 hi all
 In my xsl file I want to basically have a feature like html's
 colspan.
 Anybody know the syntax ..I have tried looking a few places and haven't
 been able to find it.
 Any help would be appreciated.

 Thanks
 Amit


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

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

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




Re: Anything wrong with this code

2001-09-26 Thread Semprini Davide



Hi,

01c701c145fd$006f6f70$[EMAIL PROTECTED]">
  
  When the PDF data is sent back to my client.
 Am I suppose to tell my client
  (IE6) that this is a PDF file (or a stream).
 I do set response.contentType to 
  "application/pdf". 
  
This is an information that you send correctly to the client setting contentType()
with this code:
  
  response.setContentType("application/pdf");
  01c701c145fd$006f6f70$[EMAIL PROTECTED]">
Am I suppose to do  something else?

what do you want to do?

D.Semprini
01c701c145fd$006f6f70$[EMAIL PROTECTED]">
  
  Carmelo
  
  
  

- Original Message - 

From:
Semprini Davide


To:
[EMAIL PROTECTED]


Sent: Tuesday, September 25, 2001 3:51AM

Subject: Re: Anything wrong with thiscode


Hi,

PDF file is a binary file!!!
Use this code it'swork:

byte[] content = outPDF.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush(); 

D.Semprini


CarmeloMontanez wrote:
02be01c1452d$7953e270$[EMAIL PROTECTED]" type="cite">
  
  
  Hi All:
  
  I know that my browser can
 display PDF propertly now, however the following
  piece of code (that generates
PDF data) sends  the data back to the client 
  (IE6) and still does not not
looks like  PDF at all. Can someone please tell me
  if there is something wrong with
this  code. By the way
  (out = response.getOutputStream()
and "foFile"  comes from an "FO" file).
  
  
  
   public void  renderFO(InputSource
foFile, HttpServletResponse  response)
 throws  IOException
 {
 try  {
 ByteArrayOutputStream outPDF  = new ByteArrayOutputStream();
  response.setContentType("application/pdf");
  
 Driver driver =  new Driver(foFile,  outPDF);
  driver.setRenderer(Driver.RENDER_PDF);
  driver.setOutputStream(outPDF);
  driver.run();
  
   byte[] content 
=  outPDF.toByteArray();
  response.setContentLength(content.length);
  out.write(content);
  out.flush();
 }  
 catch (Exception ex)  {
  System.out.println(ex);
 }
   
  Thanks,
  Carmelo Montanez
  
  Carmelo Montanez
NIST Stop  8970
Gaithersburg, MD 20899
  
  
[EMAIL PROTECTED]
  
  
  
  
  
  
  
  
  


Re: FOP Xerces 1.4.3

2001-09-26 Thread Alex McLintock

 --- Michail Bikoulis [EMAIL PROTECTED] wrote:  Hello,
 
 As far as I can see from the name of the Xerces jar file in FOP, version
 1.2.3 is used. I am having the problem where Xerces hangs when an error is
 encountered in the XML file. I found out by reading the xerces-dev mailing
 list archives that this problem is solved in later versions of Xerces.

You haven't said whether you have tried using Xerces to parse this file 
without FOP. 

Presumably it wouldn't be too hard to write a small Java program which
used Xerces to read in your XML file. If this fails in the same way then
the problem is probably not related to FOP at all. 

Alex



=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




Subscript in fop0_19_0 overlaps following line!

2001-09-26 Thread Klosa Uwe

Hi,

I'm using FOP0_19_0 and I've got a problem with 

fo:inline vertical-align=subtext/fo:inline.

the text overlapps the following line. Is this a known issue or is there a
patch?

Regards Uwe

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




Re: Subscript in fop0_19_0 overlaps following line!

2001-09-26 Thread Alex McLintock

 --- Klosa Uwe [EMAIL PROTECTED] wrote:  Hi,
 
 I'm using FOP0_19_0 and I've got a problem with 
 
 fo:inline vertical-align=subtext/fo:inline.
 
 the text overlapps the following line. Is this a known issue or is there a
 patch?
 

Merely a misunderstanding I think.

You have essentially said to lower the text by half the line height - but 
not said to use characters half the size. 

What you really need to do is to reduce the font size at the same time as you change 
the vertical alignment.

Of course my reading of the FOP spec could be wrong about that - I've been wrong 
before :-)

Alex


=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




fo:inline-container

2001-09-26 Thread ºúÖ¾Áú

hi all!
if anyone implement the fo:inline-container ,please help me!
thanks a lot!


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




Re: colspan-type feature

2001-09-26 Thread Corinna Hischke

Hi,

if you really mean spanning COLUMNS, this it what you might be looking for:

fo:table-cell number-columns-spanned=2

(an example can be found in the fop distribution in
docs/examples/tables/headfoot.fo).

- Corinna

- Original Message -
From: Amit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 12:06 AM
Subject: colspan-type feature


 hi all
 In my xsl file I want to basically have a feature like html's
 colspan.
 Anybody know the syntax ..I have tried looking a few places and haven't
 been able to find it.
 Any help would be appreciated.

 Thanks
 Amit


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







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




RE: Opening PDF automatically in IE

2001-09-26 Thread Suhail Rashid



Hi,

The 
problem is almost certainly with your setHeader
or 
setContentType statements..

make 
sure u r not 
setting in setHeader Content-Type to 
application or octet-stream
or
Content-Disposition to attachment

which 
will force a download...

suhail

  -Original Message-From: Peter Indelicato 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 26, 
  2001 4:30 AMTo: [EMAIL PROTECTED]Subject: Opening 
  PDF automatically in IE
  Hello Everyone.
  Im pretty new to FOP, so I apologize if the answer to this question is well 
  known or off-topic. 
  Im creating a .fo file that renders fine using the FOP engine 
  command-line/stand alone, but when the response is sent to the browser, the 
  users is prompted to download a file (with a random, meaningless name, of type 
  PDF) instead of IE opening and displaying the PDF file automatically. I 
  know this is possible on my browser b/c I have other PDF servlets (that dont 
  use FOP) that DONT prompt for the download. Heres the broken code:
  private void renderFO(InputSource foFile, HttpServletResponse response) 
  throwsjavax.servlet.ServletException{try{ 
  java.io.OutputStream os = response.getOutputStream();
  ByteArrayOutputStream out = new 
  ByteArrayOutputStream();response.setContentType("application/pdf"); 
  response.setHeader("Content-disposition", 
  "filename=report.pdf");response.setHeader("Etag", 
  "\"irise-" + System.currentTimeMillis() + 
  "\"");response.setHeader("Accept-Ranges", 
  "bytes");Driver driver = new Driver(foFile, 
  out);driver.run();
  byte[] content = 
  out.toByteArray();response.setContentLength(content.length);System.out.println("content 
  length: " + 
  content.length);os.write(content);os.flush();}catch 
  (Exception 
  e){e.printStackTrace();throw 
  new javax.servlet.ServletException(e);}}
  Please help! Much appreciated.
  PMI
  
  
  Do You Yahoo!?Get email alerts  NEW webcam video instant 
  messaging with Yahoo! 
  Messenger.

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


cvs commit: xml-fop/src/org/apache/fop/svg SVGElement.java

2001-09-26 Thread keiron

keiron  01/09/26 05:00:43

  Modified:src/org/apache/fop/render/awt AWTRenderer.java
   src/org/apache/fop/render/pdf PDFRenderer.java
   src/org/apache/fop/render/ps PSRenderer.java
   src/org/apache/fop/svg SVGElement.java
  Log:
  catches exception when building svg
  
  Revision  ChangesPath
  1.38  +8 -2  xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java
  
  Index: AWTRenderer.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- AWTRenderer.java  2001/09/25 13:22:55 1.37
  +++ AWTRenderer.java  2001/09/26 12:00:42 1.38
  @@ -1,5 +1,5 @@
   /*
  - * $Id: AWTRenderer.java,v 1.37 2001/09/25 13:22:55 keiron Exp $
  + * $Id: AWTRenderer.java,v 1.38 2001/09/26 12:00:42 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -699,7 +699,13 @@
   GVTBuilder builder = new GVTBuilder();
   BridgeContext ctx = new BridgeContext(userAgent);
   GraphicsNode root;
  -root = builder.build(ctx, doc);
  +try {
  +root = builder.build(ctx, doc);
  +} catch (Exception e) {
  +log.error(svg graphic could not be built: 
  +   + e.getMessage(), e);
  +return;
  +}
   float w = (float)ctx.getDocumentSize().getWidth() * 1000f;
   float h = (float)ctx.getDocumentSize().getHeight() * 1000f;
   
  
  
  
  1.91  +8 -2  xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java
  
  Index: PDFRenderer.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v
  retrieving revision 1.90
  retrieving revision 1.91
  diff -u -r1.90 -r1.91
  --- PDFRenderer.java  2001/09/24 09:17:12 1.90
  +++ PDFRenderer.java  2001/09/26 12:00:42 1.91
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFRenderer.java,v 1.90 2001/09/24 09:17:12 keiron Exp $
  + * $Id: PDFRenderer.java,v 1.91 2001/09/26 12:00:42 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -409,7 +409,13 @@
   
   
   GraphicsNode root;
  -root = builder.build(ctx, doc);
  +try {
  +root = builder.build(ctx, doc);
  +} catch (Exception e) {
  +log.error(svg graphic could not be built: 
  +   + e.getMessage(), e);
  +return;
  +}
   // get the 'width' and 'height' attributes of the SVG document
   float w = (float)ctx.getDocumentSize().getWidth() * 1000f;
   float h = (float)ctx.getDocumentSize().getHeight() * 1000f;
  
  
  
  1.15  +11 -3 xml-fop/src/org/apache/fop/render/ps/PSRenderer.java
  
  Index: PSRenderer.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/ps/PSRenderer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- PSRenderer.java   2001/09/24 07:31:52 1.14
  +++ PSRenderer.java   2001/09/26 12:00:43 1.15
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PSRenderer.java,v 1.14 2001/09/24 07:31:52 keiron Exp $
  + * $Id: PSRenderer.java,v 1.15 2001/09/26 12:00:43 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -295,13 +295,21 @@
   int y = this.currentYPosition;
   Document doc = area.getSVGDocument();
   
  -UserAgent userAgent = new org.apache.fop.svg.SVGUserAgent(new 
AffineTransform());
  +org.apache.fop.svg.SVGUserAgent userAgent
  += new org.apache.fop.svg.SVGUserAgent(new AffineTransform());
  +userAgent.setLogger(log);
   
   GVTBuilder builder = new GVTBuilder();
   BridgeContext ctx = new BridgeContext(userAgent);
   
   GraphicsNode root;
  -root = builder.build(ctx, doc);
  +try {
  +root = builder.build(ctx, doc);
  +} catch (Exception e) {
  +log.error(svg graphic could not be built: 
  +   + e.getMessage(), e);
  +return;
  +}
   // get the 'width' and 'height' attributes of the SVG document
   float w = (float)ctx.getDocumentSize().getWidth() * 1000f;
   float h = (float)ctx.getDocumentSize().getHeight() * 1000f;
  
  
  
  1.14  +8 -8 

RE: Opening PDF automatically in IE

2001-09-26 Thread Alistair Hopkins



IE 
doesn't seem to pay any attention to that.

Try 
naming the download *.pdf:
eg, 
instead of
http://mysite.com/servlet/myservlet?downloadFile=doc.pdf
try
http://mysite.com/servlet/myservlet/doc.pdf?downloadFile=doc.pdf

This 
sorted it for me!

Alistair

  -Original Message-From: Suhail Rashid 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 26, 2001 
  12:57 PMTo: [EMAIL PROTECTED]Subject: RE: Opening 
  PDF automatically in IE
  Hi,
  
  The 
  problem is almost certainly with your setHeader
  or 
  setContentType statements..
  
  make 
  sure u r not 
  setting in setHeader Content-Type 
  to application or octet-stream
  or
  Content-Disposition to attachment
  
  which will force a download...
  
  suhail
  
-Original Message-From: Peter Indelicato 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 26, 
2001 4:30 AMTo: [EMAIL PROTECTED]Subject: Opening 
PDF automatically in IE
Hello Everyone.
Im pretty new to FOP, so I apologize if the answer to this question is 
well known or off-topic. 
Im creating a .fo file that renders fine using the FOP engine 
command-line/stand alone, but when the response is sent to the browser, the 
users is prompted to download a file (with a random, meaningless name, of 
type PDF) instead of IE opening and displaying the PDF file 
automatically. I know this is possible on my browser b/c I have other 
PDF servlets (that dont use FOP) that DONT prompt for the download. 
Heres the broken code:
private void renderFO(InputSource foFile, HttpServletResponse response) 
throwsjavax.servlet.ServletException{try{ 
java.io.OutputStream os = response.getOutputStream();
ByteArrayOutputStream out = new 
ByteArrayOutputStream();response.setContentType("application/pdf"); 
response.setHeader("Content-disposition", 
"filename=report.pdf");response.setHeader("Etag", 
"\"irise-" + System.currentTimeMillis() + 
"\"");response.setHeader("Accept-Ranges", 
"bytes");Driver driver = new Driver(foFile, 
out);driver.run();
byte[] content = 
out.toByteArray();response.setContentLength(content.length);System.out.println("content 
length: " + 
content.length);os.write(content);os.flush();}catch 
(Exception 
e){e.printStackTrace();throw 
new javax.servlet.ServletException(e);}}
Please help! Much appreciated.
PMI


Do You Yahoo!?Get email alerts  NEW webcam video instant 
messaging with Yahoo! 
Messenger.


FO and Sockets.

2001-09-26 Thread Hinrich.Boog

Hi there,

I have a problem with using FOP over Sockets, maybe someone out there knows a 
workaround.
I just wanted to implement a small formatting Server, that listens to a port and in 
case a
request comes in, takes the xml:fo document from that request, transforms it and sends 
the
response back.

The communication works fine, the sending of the document and the transforming as 
well, I
just have to put it together, which does not work: My client sends the stuff, the 
server
starts transforming, but before the server is finished, the client shuts down.

Seems like the first part of my PDF document arrived, but then there's null and you 
can
use something like

while ((String in = inputStream.readLine()) != null) {
//do something
}

Here's the stuff that comes out of the server as long as the clients working...

Trying to read the answer
%PDF-1.3
%ª«¬­
null
Connection closed
File can be found in outfile.pdf

(At this time, the server was still building up the pages)

Does anyone know, how to handle this problem ?

Thanks
Hinrich


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




Re: FO and Sockets.

2001-09-26 Thread Weiqi Gao

On Wed, 2001-09-26 at 07:50, Hinrich.Boog wrote:
 [...]
 
 The communication works fine, the sending of the document and the
 transforming as well, I just have to put it together, which does not
 work: My client sends the stuff, the server starts transforming, but
 before the server is finished, the client shuts down.

 [...]

You would have better luck asking this question in a Java programming
mailing list or usenet group.  comp.lang.java.programmer maybe?  The
O'Reilly Java I/O book contains a chapter (I think) on Socket
programming.

-- 
Weiqi Gao
[EMAIL PROTECTED]


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




Re: FO and Sockets. (

2001-09-26 Thread Hinrich.Boog



I would post it to some other mailing list, if it wasn't about the Fop-Renderer. How 
can I
check how and if the Renderer flushes the result to my output Stream ? I was wondering 
if
anyone has used it in those combinations



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




Anything wrong with this code (please look at attachements)

2001-09-26 Thread Carmelo Montanez



Hello all

Thanks Sempri for all your comments. For 
anyone interested, I am attaching a very
slimed down copy of my Servlet. I am 
hardwiring the file name (FO file) inside the
servlet (for convenience of running). I am also 
attaching a "dummy" HTML file
to call the servlet (no parameters are retrieved 
from the HTML by the servlet).
I am also attaching the FO file

I am running this using Tomcat. If 
anyone please try an attempt to run the
servlet. I am still getting "stuff" (as you 
will see) on thebrowser. Please look
at the "import" statements (most of them are 
comments) to see
which classes you need, I can can provide them if 
need be.

I am using FOP's latest version.

Greetings,
Carmelo
 testPDF.java

This is an FOP PDF generation test

This is just a test





 cbpbp-background-color4.fo

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


Re: colspan-type feature

2001-09-26 Thread Amit

Thank you all for helping out.
I have both the number-columns-spanned and number-rows-spanned working

Amit

Amit wrote:

 hi all
 In my xsl file I want to basically have a feature like html's
 colspan.
 Anybody know the syntax ..I have tried looking a few places and haven't
 been able to find it.
 Any help would be appreciated.

 Thanks
 Amit

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


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




RE: FOP WARNING - Please Help!

2001-09-26 Thread Savino, Matt C

I downloaded and built the latest CVS. When I tried to use the
XSLTInputHandler, my error switched from the weird one I was getting to yet
another null pointer exception. That got me thinking maybe I should just try
doing the simplest transform of all time and see if it isn't something with
my stylesheet. Anyway the problem was I only had the xsl namespace defined
in my stylesheet root element and not the fo namespace.

xsl:stylesheet 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
xmlns:fo=http://www.w3.org/1999/XSL/Format;   (missing)


I probably should have known this. I think someone even mentioned it, but I
wasn't sure what they were talking about. Anyway, the good news is that
after three days of fiddling I feel like I know FOP pretty well. I also have
a much better grasp of SAX and DOM.

Again, thanks for all your help. You probably haven't heard the last of me.

-Matt Savino


-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 11:32 PM
To: '[EMAIL PROTECTED]'
Subject: AW: FOP WARNING - Please Help!


I had the same problem with the 0.20.1 release. Try using the actual
cvs version. There it works!

Christian

-Ursprüngliche Nachricht-
Von: Savino, Matt C [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 26. September 2001 01:37
An: '[EMAIL PROTECTED]'
Betreff: RE: FOP WARNING - Please Help!


(I just realize this message might be pretty hard to read, so I added 
at the beginning and end of code and error blocks.)

Shkuro, I have tried to replicate your solution and I still get strange
errors. Here is the error I get:


D:\Precision\RV40_Working\pvhjava FOtoPDF
building formatting object tree
building formatting object tree
javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1212)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:143)
at FOtoPDF.main(FOtoPDF.java:41)
-
java.lang.NullPointerException
at
org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:167)
at
org.apache.xalan.transformer.QueuedStartDocument.flush(QueuedStartDocument.j
ava:108)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
r.java:758)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandle
r.java:245)
at
org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandle
r.java:209)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
704)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
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:1189)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
479)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1118)
at FOtoPDF.applyFop(FOtoPDF.java:143)
at FOtoPDF.main(FOtoPDF.java:41)


It looks like maybe it's trying to build the formatting tree twice? 

Here is my code:

DocumentBuilderFactory dFactory =
DocumentBuilderFactory.newInstance();
dFactory.setNamespaceAware(true);
DocumentBuilder dBuilder = dFactory.newDocumentBuilder();

org.w3c.dom.Document xmlDoc = dBuilder.parse(xmlFilename);
DOMSource xmlDomSource = new DOMSource(xmlDoc);

org.w3c.dom.Document xslDoc = dBuilder.parse(xslFilename);
DOMSource xslDomSource = new DOMSource(xslDoc);

TransformerFactory tFactory = TransformerFactory.newInstance();
javax.xml.transform.Templates templates =
tFactory.newTemplates(xslDomSource);
Transformer transformer = templates.newTransformer();

org.apache.fop.apps.Driver driver = new
org.apache.fop.apps.Driver();
driver.setErrorDump(true);
driver.setRenderer(driver.RENDER_PDF);
driver.setOutputStream(new FileOutputStream(pdfFilename));

javax.xml.transform.sax.SAXResult saxResult = new
javax.xml.transform.sax.SAXResult( driver.getContentHandler() );
transformer.transform(xmlDomSource, saxResult);


Someone also said this may be fixed in the latest CVS. I downloaded
Fop-0.20.1-src.tar.gz on 9/17/01. Is there something more recent? I only ask
because my ridiculous company still hasn't restored our internet access
since Nimda.

I would also be happy if I could get render(dom) working when applied to a

FOP Digester is messing up

2001-09-26 Thread Paul Furbacher

Two digests in a row have come in quite severely
malformed.  The header seems to be completely
missing.  No subject line, no table of contents (or
whatever it is called.

Can someone take a look at what's going
on with it, and maybe attempt to fix it?

Thanks.


Paul Furbacher



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




image on every pdf page

2001-09-26 Thread Amit

I have images working ..

fo:block
   fo:external-graphic src=http://localhost:8100/somepic.gif
content-height=3cm
content-width=8cm/
  /fo:block


Is there a way so that this image is always on a page when a page break
occurs in the pdf file.(kindda like page numbers..)

thanks
Amit


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




Re: image on every pdf page

2001-09-26 Thread Eric Dalquist

You might be able to put the image in the footer section of the page.

-Eric Dalquist

- Original Message - 
From: Amit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 2:05 PM
Subject: image on every pdf page


 I have images working ..
 
 fo:block
fo:external-graphic src=http://localhost:8100/somepic.gif
 content-height=3cm
 content-width=8cm/
   /fo:block
 
 
 Is there a way so that this image is always on a page when a page break
 occurs in the pdf file.(kindda like page numbers..)
 
 thanks
 Amit
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 


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




Re: image on every pdf page

2001-09-26 Thread jthaemlitz


You need to set up the static content areas (you probably already have
region-before and region-after in your simple-page-master).  You'll want to
put in one of the following in your page-sequence depending on where you
want it to show up.

static-content flow-name=xsl-region-before (for English TOP area)
static-content flow-name=xsl-region-after  (for English BOTTOM
area)
static-content flow-name=xsl-region-start  (for English LEFT area)
static-content flow-name=xsl-region-end   (for English RIGHT area)


JohnPT



   

fop-dev-return-10563-jthaemlitz=oreillyauto.com@XML.   

APACHE.ORG To: 
[EMAIL PROTECTED]  
   cc: 

09/26/01 01:05 PM  
Subject: image on every pdf page
Please respond to fop-dev  

   

   





I have images working ..

fo:block
   fo:external-graphic src=http://localhost:8100/somepic.gif
content-height=3cm
content-width=8cm/
  /fo:block


Is there a way so that this image is always on a page when a page break
occurs in the pdf file.(kindda like page numbers..)

thanks
Amit


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










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




Re: image on every pdf page

2001-09-26 Thread Amit

My code is listed below...the image does not show up in the pdf


fo:static-content flow-name=xsl-region-before
fo:block
fo:external-graphic src=http://localhost:8100/somepic.gif;
content-height=3cm
content-width=8cm/
/fo:block
/fo:static-content


If i take out the static -content tag the picture shows up one page

[EMAIL PROTECTED] wrote:

 You need to set up the static content areas (you probably already have
 region-before and region-after in your simple-page-master).  You'll want to
 put in one of the following in your page-sequence depending on where you
 want it to show up.

 static-content flow-name=xsl-region-before (for English TOP area)
 static-content flow-name=xsl-region-after  (for English BOTTOM
 area)
 static-content flow-name=xsl-region-start  (for English LEFT area)
 static-content flow-name=xsl-region-end   (for English RIGHT area)

 JohnPT


 fop-dev-return-10563-jthaemlitz=oreillyauto.com@XML.
 APACHE.ORG To:   
  [EMAIL PROTECTED]
cc:
 09/26/01 01:05 PM  
Subject: image on every pdf page
 Please respond to fop-dev



 I have images working ..

 fo:block
fo:external-graphic src=http://localhost:8100/somepic.gif
 content-height=3cm
 content-width=8cm/
   /fo:block

 Is there a way so that this image is always on a page when a page break
 occurs in the pdf file.(kindda like page numbers..)

 thanks
 Amit

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

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


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




Re: image on every pdf page

2001-09-26 Thread jthaemlitz


I think you want height' and width NOT content-height and
content-width on your external-graphic.  Make your static-content
region-before real big for testing (extent=2in), then trim it down.  If
the image doesn't fit in the static region it will be blank.

I bet the static region is working when it's not showing, you just need to
make the region larger because your graphic height and width are not
sizeing correctly.  I found I had to leave a buffer zone.

Other Thoughts: make sure your using a repeatable-page-master of some type
(not a single-page-master-reference) in your page-sequence-master.



   

fop-dev-return-10566-jthaemlitz=oreillyauto.com@XML.   

APACHE.ORG To: 
[EMAIL PROTECTED]  
   cc: 

09/26/01 02:50 PM  
Subject: Re: image on every pdf page
Please respond to fop-dev  

   

   





My code is listed below...the image does not show up in the pdf


fo:static-content flow-name=xsl-region-before
fo:block
fo:external-graphic src=http://localhost:8100/somepic.gif;
content-height=3cm
content-width=8cm/
/fo:block
/fo:static-content


If i take out the static -content tag the picture shows up one page

[EMAIL PROTECTED] wrote:

 You need to set up the static content areas (you probably already have
 region-before and region-after in your simple-page-master).  You'll want
to
 put in one of the following in your page-sequence depending on where you
 want it to show up.

 static-content flow-name=xsl-region-before (for English TOP area)
 static-content flow-name=xsl-region-after  (for English BOTTOM
 area)
 static-content flow-name=xsl-region-start  (for English LEFT
area)
 static-content flow-name=xsl-region-end   (for English RIGHT area)

 JohnPT


 fop-dev-return-10563-jthaemlitz=oreillyauto.com@XML.
 APACHE.ORG
To: [EMAIL PROTECTED]

cc:
 09/26/01 01:05 PM
Subject: image on every pdf page
 Please respond to fop-dev



 I have images working ..

 fo:block
fo:external-graphic src=http://localhost:8100/somepic.gif
 content-height=3cm
 content-width=8cm/
   /fo:block

 Is there a way so that this image is always on a page when a page break
 occurs in the pdf file.(kindda like page numbers..)

 thanks
 Amit

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

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


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










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




Centering a table horizontally

2001-09-26 Thread Trevor_Campbell


Can anyone tell me how to center a fo:table horizontally with in the page
body.  I Know I can add padding to the left of the table, but is there a
simple centering tag for a whole table  (not the text within it).

Trevor


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




DO NOT REPLY [Bug 3846] New: - Segmentation fault on build. RedHat 6.2 with Sun JDK 1.3.1_01

2001-09-26 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3846.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3846

Segmentation fault on build. RedHat 6.2 with Sun JDK 1.3.1_01

   Summary: Segmentation fault on build. RedHat 6.2 with Sun JDK
1.3.1_01
   Product: Fop
   Version: all
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


When atempting to build fop from CVS sources, I get the following error:

[elrond@rivendell xml-fop]$ ./build.sh package

Fop Build System



Building with classpath /usr/local/java/jdk1.3-
old/lib/tools.jar:/usr/local/java/jdk1.3-
old/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-
1.2.3.jar:lib/xalan-2.0.0.jar:lib/xalanj1compat.jar:lib/bsf.jar:lib/jimi-
1.0.jar:lib/logkit-1.0b4.jar:lib/avalon-framework-4.0.jar
Starting Ant...

Buildfile: build.xml
./build.sh: line 26: 30288 Segmentation fault  $JAVA_HOME/bin/java -
Dant.home=$ANT_HOME -classpath $LOCALCLASSPATH org.apache.tools.ant.Main $*

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