Testing with w3c testsuite

2001-07-05 Thread Keiron Liddle

I have setup the testing so that it is easy to run through all the w3c
testsuite
which can be obtained from:
http://www.w3.org/Style/XSL/TestSuite/

All you need to do is-
Download the full testsuite
unzip into base directory of FOP
uncomment the runTest tasks in the test target in build.xml

The if you do a
build.sh test
it will run through every test with the reference and the current build.

Admittedly it doesn't tell you that much other than problems with property
handling and exceptions.


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




cvs commit: xml-fop/lib buildtools.jar

2001-07-05 Thread keiron

keiron  01/07/05 23:58:01

  Modified:.build.xml
   docs/xml-docs/fop testing.xml
   src/org/apache/fop/tools/anttasks RunTest.java
   lib  buildtools.jar
  Log:
  added support for easily using w3c testsuite for build target test
  
  Revision  ChangesPath
  1.36  +15 -1 xml-fop/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/xml-fop/build.xml,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- build.xml 2001/05/18 09:55:30 1.35
  +++ build.xml 2001/07/06 06:57:51 1.36
  @@ -572,8 +572,22 @@
   
 
   
  -
  +
  +
 
   
  
  
  
  
  1.2   +10 -0 xml-fop/docs/xml-docs/fop/testing.xml
  
  Index: testing.xml
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/testing.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testing.xml   2001/06/06 12:34:09 1.1
  +++ testing.xml   2001/07/06 06:57:55 1.2
  @@ -20,6 +20,16 @@
   
 
   
  +  
  +
  +The testing is set up so that you can download the testsuite from
  +http://www.w3.org/Style/XSL/TestSuite/";>http://www.w3.org/Style/XSL/TestSuite/,
  +unzip the file into the base directory of FOP.
  +Then you can uncomment the lines in the build.xml file in the test target and it
  +will run through all the tests in the testsuite distribution.
  +
  +  
  +
 
   
   A test belongs to one of a few catagories. A basic test should excercise one
  
  
  
  1.4   +1 -1  xml-fop/src/org/apache/fop/tools/anttasks/RunTest.java
  
  Index: RunTest.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/anttasks/RunTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RunTest.java  2001/06/18 11:33:33 1.3
  +++ RunTest.java  2001/07/06 06:57:57 1.4
  @@ -114,7 +114,7 @@
   //} else {
   try {
   ClassLoader loader = new URLClassLoader(
  -   new URL[]{new URL("file:" + basedir + 
referenceJar)});
  +   new URL[]{new URL("file:" + referenceJar)});
   boolean failed = false;
   
   try {
  
  
  
  1.8   +204 -166  xml-fop/lib/buildtools.jar
  
<>
  
  

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




AW: problem to run fop within a servlet

2001-07-05 Thread Gabriel Wurzer

In fact, I had this problem, too; It seems that this comes from the fact
that tomcat spawns a new "cmd" window -- and the classpaths aren't set
there. So i used "tomcat run" to open it in the same command window; but
that didn't help, too.

So what I eventually did was , I used CYGWIN [a bash shell under WIN32]
and typed in

./tomcat.sh run

then, everthing worked.

Gabriel Wurzer


---Gustavo wrote:

In order to do that, I use:

InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
InputSource inputSource = inputHandler.getInputSource();
//FAILURE HERE
XMLReader  parser = inputHandler.getParser();
/**
* Creates the driver telling it to write the output file to screen
(AWT).
*/
Driver driver = new Driver();
driver.setRenderer(this.AWTRendererClass);
driver.buildFOTree(parser, inputSource);
driver.format();
  driver.render();

First and second lines run OK. Third line gives an exception:
javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser exception.message: null 

There is in principle no problem with the xmlInputSource and
xslInputSource,
because when I run fop from the command line:

Fop -xml xmlInputSource.xml -xsl xslInputSource.xsl -pdf output.pdf (or
option -awt), 

I get proper results.

COuld someone please tell me what am I doing wrong, or what am I
missing? 
Also, are the lines related to the Driver correct?


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




running from servlet, is buffering needed?

2001-07-05 Thread Seshadri G.K.

I want to know is the memory patch really needed when fop runs from a
servelet. Iam sure when it is servelet invoked, the xsl-fo files are much
smaller, because some user is waiting to see the files on the browser,
unlike commandline where really big files could be used. If that is so, then
I could commit the memory patch to fop.

seshadri



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




Re: Font Metric file from PFB file??

2001-07-05 Thread Jeremias Maerki

> how can i generate font metric file from pfb fies
> which comes with font files.I don't have pfm files.I
> read that The PFMReader tool does not yet interpret
> PFB files.Please help me.

The PFM is currently the only way. If you have a PFA (which is in a text
format) you can quite easily construct the XML font metric file by hand
if you bother to consult the Adobe manuals for Postscript Type 1 fonts.
But with only a PFB you won't have much luck, I guess. Try to get hold
of the corresponding PFM.

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


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




Font Metric file from PFB file??

2001-07-05 Thread rajeev nair

hello,
how can i generate font metric file from pfb fies
which comes with font files.I don't have pfm files.I
read that The PFMReader tool does not yet interpret
PFB files.Please help me.
regards rajiv

--- Keiron Liddle <[EMAIL PROTECTED]> wrote:
> 
> On Sat, 30 Jun 2001 13:36:24 rajeev nair wrote:
> > hello Keiron,
> > Thanx for ur prompt response.
> > >From where i'll get batik.jar file.I downloaded
> > xml-batik and build that.But i couldn't see
> batik.jar
> > anywhere.I'm still struggling with font addition.
> > please help me.
> > regards
> > rajiv
> 
> I don't understand what you question is.
> 
> In what way are you struggling, why do you need
> batik.jar it should be in
> the lib directory.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




Re: bit OT but..streaming PDF to browsers

2001-07-05 Thread dbirch


Thanks so much for the help the ContentDisposition worked like a charm on
ie5 & 5.5sp1 :)

cheers
Dave




"David Frankson" <[EMAIL PROTECTED]> on 07/06/2001 03:47:43 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: bit OT but..streaming PDF to browsers


Check the Microsoft Knowledge base for Article ID: Q293336   It explains
the
idiotic way IE handles MIME types.

Dave


- Original Message -
From: "Alex McLintock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 9:07 AM
Subject: Re: bit OT but..streaming PDF to browsers


> --- Dave Frankson <[EMAIL PROTECTED]> wrote:
> > PDFs from a servlet works in all broswers but you have to remember to
do
all
> > of the following:
> >
> >
> > 1.)  Set the headers:
> >
> >response.setContentType("application/pdf");
> >response.addHeader("Content-Disposition", "inline;
filename=report.pdf");
> >
>
> Your other suggestions I've heard of before - but haven't noticed this
one.
> Does it really work? What browsers support "Content-Disposition" ?
> Where can I find out more?
>
> Presumably I ought to add it to the FAQ.
>
> Cheers
>
> Alex
>
>
> =
> Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in
London
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> DR WHO COMPETITION:
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
> Get Your XML 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]
>
>


-
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: Can't build latest CVS

2001-07-05 Thread John Wyman

Thanks, now if I could only get the text-deco to work across a block
like .12 I'd be all set. I was looking at the code and it appears to
have been removed when font-variant was added instead. At least looking
at the .12 code leads me to believe this.
John


John H. Wyman
5160 Darry Lane
Dublin, OH 43016
(614)-889-0698
[EMAIL PROTECTED] 
Wyman Genealogy Site 
Francis Wyman Assoc email List
http://groups.yahoo.com/group/FrancisWymanAssoc
Wyman Family Genealogy Forum 
The Wyman Surname Message Board


  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Karen Lease
Sent: Thursday, July 05, 2001 4:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Can't build latest CVS


Hi John,

Sorry about that. I guess I was a little tired last night when I
committed the spanning row stuff and I forgot to add that class which is
new. It should be OK now.

Regards,
Karen

> John Wyman wrote:
> 
> I get
> [javac] Compiling 638 source files to 
> C:\CVSRoot\xml-fop\build\classes
> [javac]
> C:\CVSRoot\xml-fop\build\src\org\apache\fop\fo\flow\TableBody.java:40:
> Class org.apache.fop.fo.flow.RowSpanMgr not found.
> [javac] RowSpanMgr rowSpanMgr; // manage information about
> spanning rows
> 
> 
> Can't find a definition for Row Span Mgr, where is it declared ?
> 
> John
> 
> John H. Wyman
> 5160 Darry Lane
> Dublin, OH 43016
> (614)-889-0698
> [EMAIL PROTECTED] 
> Wyman Genealogy Site 
> Francis Wyman Assoc email List 
> http://groups.yahoo.com/group/FrancisWymanAssoc
> Wyman Family Genealogy Forum 
> The Wyman Surname Message Board 
>  orum=Wyman>
> 
> 
> 
>

-
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: XSLTInputHandler not doing its job??

2001-07-05 Thread Karen Lease

Hi Gustavo,

I'm not 100% sure, but it looks to me as if you get the parser from the
inputHandler instead of using newInstance, it will work. That's what FOP
does when you pass it the xml and xsl in the command line.

InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
XMLReader parser = inputHandler.getParser();
InputSource inputSource = inputHandler.getInputSource();

Then pass that to the driver.

What is happening is that the inputSource you're getting back now is
just returning your original XML file. When you call getParser() on the
XSLTInputHandler, it's actually going to "parse" the FO file which
results from transforming your xml with the xsl.

Hope that helps,
Karen Lease


"Wolf Gustavo (SGC-EXT)" wrote:
> 
> Hi,
>   as I said a few hours ago, I have the following code:
> 
> InputHandler inputHandler = new
> XSLTInputHandler(xmlInputSource,xslInputSource);
> InputSource inputSource = inputHandler.getInputSource();
> XMLReader  parser = (XMLReader)
> Class.forName(this.parserClass).newInstance();
> 
> parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true);
> /**
> * Creates the driver telling it to write the output to a file.
> */
> Driver driver = new Driver();
> driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer");
> //  ERROR IN THE FOLLOWING LINE
> driver.buildFOTree(parser, inputSource);
> File test = new File("test.pdf");
> driver.setOutputStream(new java.io.FileOutputStream(test));
> driver.format();
> driver.render();
> 
> In the second line, InputSource inputSource is suppossed to be the .fo file
> after the processing of xmlInputSource by xslInputSource.
> 
> I am using as xmlInputSource and xslInputSource two files that I took from
> the chap 15 of the XMLbible (attached).
> 
> Now, when the program tries to execute "driver.buildFOTree(parser,
> inputSource);", I get the following msg and Exception:
> 
> "building formatting object tree
>  WARNING: Unknown formatting object ^PERIODIC_TABLE
>  FOPException: org.xml.sax.SAXException (msg: null)"
> 
> It seems to me that XSLTInputHandler is not doing its job properly, because
> of the WARNING.
> 
> Again, if I run a line command with
> Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf
> everything is OK, which tells me that there shouldn't be a problem with the
> input files.
> 
> Does anyone knows how to cure this?
> 
> Thanks a lot,
> Gustavo
> 
>  <>  <>
> 
>   
>  Name: prueba.xml
>prueba.xmlType: unspecified type (application/octet-stream)
>  Encoding: quoted-printable
> 
>prueba.xslName: prueba.xsl
>  Type: unspecified type (application/octet-stream)
> 
>   
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Addition Font

2001-07-05 Thread hoang nam nguen

Hello,

I have add the font embbeded in FOP 19.The problem is
when we use the font embedded, the size of the PDF
file is very big.

Is there a way to add the fonts into Fop but not
embbed these fonts in the PDF file ? I think Acrobat
Writer and Distiller can display many fonts.

Thanks for any suggestion !

Nam

___
Do You Yahoo!? -- Pour faire vos courses sur le Net, 
Yahoo! Shopping : http://fr.shopping.yahoo.com

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




Re: Can't build latest CVS

2001-07-05 Thread Karen Lease

Hi John,

Sorry about that. I guess I was a little tired last night when I
committed the spanning row stuff and I forgot to add that class which is
new. It should be OK now.

Regards,
Karen

> John Wyman wrote:
> 
> I get
> [javac] Compiling 638 source files to
> C:\CVSRoot\xml-fop\build\classes
> [javac]
> C:\CVSRoot\xml-fop\build\src\org\apache\fop\fo\flow\TableBody.java:40:
> Class org.apache.fop.fo.flow.RowSpanMgr not found.
> [javac] RowSpanMgr rowSpanMgr; // manage information about
> spanning rows
> 
> 
> Can't find a definition for Row Span Mgr, where is it declared ?
> 
> John
> 
> John H. Wyman
> 5160 Darry Lane
> Dublin, OH 43016
> (614)-889-0698
> [EMAIL PROTECTED] 
> Wyman Genealogy Site 
> Francis Wyman Assoc email List
> http://groups.yahoo.com/group/FrancisWymanAssoc
> Wyman Family Genealogy Forum 
> The Wyman Surname Message Board
> 
> 
> 
> 
>

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




cvs commit: xml-fop/src/org/apache/fop/fo/flow RowSpanMgr.java

2001-07-05 Thread klease

klease  01/07/05 13:05:50

  Added:   src/org/apache/fop/fo/flow RowSpanMgr.java
  Log:
  Helper class for spanning rows
  
  Revision  ChangesPath
  1.1  xml-fop/src/org/apache/fop/fo/flow/RowSpanMgr.java
  
  Index: RowSpanMgr.java
  ===
  /*-- $Id: RowSpanMgr.java,v 1.1 2001/07/05 20:05:49 klease 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.
   */
  
  package org.apache.fop.fo.flow;
  
  import org.apache.fop.layout.Area;
  import java.util.Enumeration;
  
  public class RowSpanMgr {
  class SpanInfo {
int cellHeight;
int totalRowHeight;
int rowsRemaining;
//int numCols; // both V and H span
TableCell cell;
  
SpanInfo(TableCell cell, int cellHeight, int rowsSpanned) {
this.cell = cell;
this.cellHeight = cellHeight;
this.totalRowHeight = 0;
this.rowsRemaining = rowsSpanned;
}
  
/**
 * Return the height remaining in the span.
 */
int heightRemaining() {
int hl = cellHeight - totalRowHeight;
return (hl>0)? hl : 0;
}
  
boolean isInLastRow() {
return (rowsRemaining == 1);
}
  
boolean finishRow(int rowHeight) {
totalRowHeight += rowHeight;
if (--rowsRemaining == 0) {
if (cell != null) {
cell.setRowHeight(totalRowHeight);
}
return true;
}
else return false;
}
  }
  
  private SpanInfo spanInfo[];
  
  public RowSpanMgr(int numCols) {
this.spanInfo = new SpanInfo[numCols];
  }
  
  public void addRowSpan(TableCell cell, int firstCol, int numCols,
 int cellHeight, int rowsSpanned) {
spanInfo[firstCol-1] = new SpanInfo(cell, cellHeight, rowsSpanned);
for (int i=0; i 


[Bug 2463] New: - No of lines per page in a PDF output file

2001-07-05 Thread bugzilla

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

*** shadow/2463 Thu Jul  5 12:49:25 2001
--- shadow/2463.tmp.6391Thu Jul  5 12:49:25 2001
***
*** 0 
--- 1,28 
+ ++
+ | No of lines per page in a PDF output file  |
+ ++
+ |Bug #: 2463Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: PC  |
+ | Severity: Normal   OS/Version: Other   |
+ | Priority: Other Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED] |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ I have created a XSL style sheet for an XML document and using Xalan I created 
+ a FO and I used FOP (18) to create the PDF.
+ 
+ My out put has only 10 lines per page, It has lot space left unused below the 
+ 10th line...  but if I use the same files(xml & XSL) in Antenna house's XSL 
+ Formatter..it works fine.
+ 
+ Please advise if I need to do any kind of special change in my XSL to meet FOP 
+ or Xalan's Requirements.
+ 
+ Thanks
+ Ram

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




Re: bit OT but..streaming PDF to browsers

2001-07-05 Thread David Frankson

Check the Microsoft Knowledge base for Article ID: Q293336   It explains the
idiotic way IE handles MIME types.

Dave


- Original Message -
From: "Alex McLintock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 9:07 AM
Subject: Re: bit OT but..streaming PDF to browsers


> --- Dave Frankson <[EMAIL PROTECTED]> wrote:
> > PDFs from a servlet works in all broswers but you have to remember to do
all
> > of the following:
> >
> >
> > 1.)  Set the headers:
> >
> >response.setContentType("application/pdf");
> >response.addHeader("Content-Disposition", "inline;
filename=report.pdf");
> >
>
> Your other suggestions I've heard of before - but haven't noticed this
one.
> Does it really work? What browsers support "Content-Disposition" ?
> Where can I find out more?
>
> Presumably I ought to add it to the FAQ.
>
> Cheers
>
> Alex
>
>
> =
> Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> DR WHO COMPETITION:
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
> Get Your XML 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]
>
>


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




RE: XSLTInputHandler not doing its job??

2001-07-05 Thread Williamson, James
Title: RE: XSLTInputHandler not doing its job??



Typo, 
I think FOP can be configured to tolerate *sloppy* XML.

  -Original Message-From: Williamson, James 
  [mailto:[EMAIL PROTECTED]]Sent: 05 July 2001 
  17:15To: '[EMAIL PROTECTED]'Subject: RE: 
  XSLTInputHandler not doing its job??
  Wolf, 
  That's not valid XML, when it says view source for full 
  doctype it doesn't expect you to take that literally. DOCTYPE's generally take these form: 
   
  or 
   
  or (embedded) 
   
      your embedded 
  DTD ]> 
  I'm no FOP expert but I'm sure I remember being able to 
  configure FOP to tolerate XML (i.e. HTML) perhaps you could have a look at the 
  source code for the FOP app.
  Regards, 
  James 
  -Original Message- From: Wolf 
  Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]] 
  Sent: 05 July 2001 16:50 To: Fop 
  (E-mail) Subject: XSLTInputHandler not doing its 
  job?? 
  Hi,   as 
  I said a few hours ago, I have the following code: 
      InputHandler 
  inputHandler = new XSLTInputHandler(xmlInputSource,xslInputSource);     InputSource inputSource = 
  inputHandler.getInputSource();     XMLReader  parser = 
  (XMLReader) Class.forName(this.parserClass).newInstance();   parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true); 
  /** * Creates the driver telling it 
  to write the output to a file. */     Driver driver = new 
  Driver();     
  driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer"); //  ERROR IN THE FOLLOWING LINE     driver.buildFOTree(parser, 
  inputSource);     File test = new 
  File("test.pdf");     driver.setOutputStream(new 
  java.io.FileOutputStream(test));     driver.format(); 
      
  driver.render(); 
  In the second line, InputSource inputSource is suppossed to be 
  the .fo file after the processing of xmlInputSource by 
  xslInputSource. 
  I am using as xmlInputSource and xslInputSource two files that 
  I took from the chap 15 of the XMLbible 
  (attached). 
  Now, when the program tries to execute 
  "driver.buildFOTree(parser, inputSource);", I get the 
  following msg and Exception: 
  "building formatting object tree  WARNING: Unknown formatting object ^PERIODIC_TABLE 
   FOPException: org.xml.sax.SAXException (msg: 
  null)" 
  It seems to me that XSLTInputHandler is not doing its job 
  properly, because of the WARNING. 
  Again, if I run a line command with Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf 
  everything is OK, which tells me that there shouldn't 
  be a problem with the input files. 
  Does anyone knows how to cure this? 
  Thanks a lot,     
  Gustavo 
   <>  
  <> **This 
  e-mail (including any documents which may accompany it) 
  containsinformation which is confidential and may also be 
  privileged.It is for the exclusive use of the intended recipient(s).If 
  you are not the intended recipient(s) please note that any form 
  ofdistribution, copying or use of this e-mail or the information in 
  itor attached to it is strictly prohibited and may be unlawful.If you 
  have received this e-mail in error please notify us immediatelyby e-mail 
  to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 anddelete the 
  e-mail.Please advise immediately if you or your employer do not consent 
  toInternet E-Mail for messages of this type.Information or opinions in 
  this message that do not relate to thebusiness of Windsor plc and/or 
  subsidiary and/or associated companiesshall be treated as neither given or 
  endorsed by 
  it.**

**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



RE: XSLTInputHandler not doing its job??

2001-07-05 Thread Williamson, James
Title: RE: XSLTInputHandler not doing its job??





Wolf, 


That's not valid XML, when it says view source for full doctype it doesn't expect you to take that literally.
DOCTYPE's generally take these form:





or 





or (embedded)



    your embedded DTD
]>


I'm no FOP expert but I'm sure I remember being able to configure FOP to tolerate XML (i.e. HTML) perhaps you could have a look at the source code for the FOP app.

Regards, 


James



-Original Message-
From: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2001 16:50
To: Fop (E-mail)
Subject: XSLTInputHandler not doing its job??



Hi,
  as I said a few hours ago, I have the following code:


    InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
    InputSource inputSource = inputHandler.getInputSource();
    XMLReader  parser = (XMLReader)
Class.forName(this.parserClass).newInstance();
 
parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true);
/**
* Creates the driver telling it to write the output to a file.
*/
    Driver driver = new Driver();
    driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer");
//  ERROR IN THE FOLLOWING LINE
    driver.buildFOTree(parser, inputSource);
    File test = new File("test.pdf");
    driver.setOutputStream(new java.io.FileOutputStream(test));
    driver.format();
    driver.render();


In the second line, InputSource inputSource is suppossed to be the .fo file
after the processing of xmlInputSource by xslInputSource.


I am using as xmlInputSource and xslInputSource two files that I took from
the chap 15 of the XMLbible (attached).


Now, when the program tries to execute "driver.buildFOTree(parser,
inputSource);", I get the following msg and Exception:


"building formatting object tree
 WARNING: Unknown formatting object ^PERIODIC_TABLE
 FOPException: org.xml.sax.SAXException (msg: null)"


It seems to me that XSLTInputHandler is not doing its job properly, because
of the WARNING.


Again, if I run a line command with 
Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf 
everything is OK, which tells me that there shouldn't be a problem with the
input files.


Does anyone knows how to cure this? 


Thanks a lot,
    Gustavo






 <>  <> 





**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



[Bug 2460] New: - Mulitple boder lines between the colums in a table

2001-07-05 Thread bugzilla

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

*** shadow/2460 Thu Jul  5 08:57:21 2001
--- shadow/2460.tmp.4151Thu Jul  5 08:57:21 2001
***
*** 0 
--- 1,28 
+ ++
+ | Mulitple boder lines between the colums in a table |
+ ++
+ |Bug #: 2460Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: PC  |
+ | Severity: Critical OS/Version: Other   |
+ | Priority: Other Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED] |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ I installed FOP 18.1 and tried to create the pdf file for the table.fo that 
+ comes along with the product as an example..
+ 
+ the problem is i looked at the out put pdf and found that in page 4 i have a 
+ table in which it has two lines as border between the colums... the reason why 
+ i am asking you this is I created a xsl style sheet for my xml and created a 
+ pdf using your product... I have the above mentioned problem..but using the 
+ same files with Antenna house xsl formatter I am getting the correct output...
+ 
+ please help me !!
+ 
+ Ram

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




XSLTInputHandler not doing its job??

2001-07-05 Thread Wolf Gustavo (SGC-EXT)

Hi,
  as I said a few hours ago, I have the following code:

InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
InputSource inputSource = inputHandler.getInputSource();
XMLReader  parser = (XMLReader)
Class.forName(this.parserClass).newInstance();
 
parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true);
/**
* Creates the driver telling it to write the output to a file.
*/
Driver driver = new Driver();
driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer");
//  ERROR IN THE FOLLOWING LINE
driver.buildFOTree(parser, inputSource);
File test = new File("test.pdf");
driver.setOutputStream(new java.io.FileOutputStream(test));
driver.format();
driver.render();

In the second line, InputSource inputSource is suppossed to be the .fo file
after the processing of xmlInputSource by xslInputSource.

I am using as xmlInputSource and xslInputSource two files that I took from
the chap 15 of the XMLbible (attached).

Now, when the program tries to execute "driver.buildFOTree(parser,
inputSource);", I get the following msg and Exception:

"building formatting object tree
 WARNING: Unknown formatting object ^PERIODIC_TABLE
 FOPException: org.xml.sax.SAXException (msg: null)"

It seems to me that XSLTInputHandler is not doing its job properly, because
of the WARNING.

Again, if I run a line command with 
Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf 
everything is OK, which tells me that there shouldn't be a problem with the
input files.

Does anyone knows how to cure this? 

Thanks a lot,
Gustavo





 <>  <> 



 prueba.xml
 prueba.xsl

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


Re: bit OT but..streaming PDF to browsers

2001-07-05 Thread Micheál Healy

Hi Dave,

Thanks for your help.  Unfortunately, I've tried all your suggestions, and
the thing still isn't working.  I was already flushing the output stream,
but wasn't closing it - I'm doing that now.  I was setting the content type,
and the length, but not the content-disposition - again, I've rectified
this.  I've even changed the url so that it finishes with ".pdf", still no
joy.

I sent a previous message to the list with details of my set-up.  This is
from that message (Subject: external-graphic):
"I'm using Xalan to create my .fo files from XML and XSL, then rendering
pdf's using fop (v.0.19).  I'm using JDK 1.3.  This is all within a servlet.
I'm using Apache and Tomcat together as web server and servlet engine.  "

This problem isn't stopping me in my tracks.  As I said, it works fine with
IE 5.0, but I would like to get it solved.

TIA,

Micheál
- Original Message -
From: Dave Frankson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 3:03 PM
Subject: Re: bit OT but..streaming PDF to browsers


> PDFs from a servlet works in all broswers but you have to remember to do
all
> of the following:
>
>
> 1.)  Set the headers:
>
>response.setContentType("application/pdf");
>response.addHeader("Content-Disposition", "inline;
filename=report.pdf");
>
> (Also try to structure your URL so that the last few characters are
".pdf".
> This helps some stupid version of IE that you are returing a pdf)
>
>
> 2.)  Write out the size of the pdf:
>
>response.setContentLength( pdfDoc.length );
>
>
>
> 3.)  Flush your output stream:
>
>out.flush();
>out.close();
>
>
> Dave
>
>
>
> - Original Message -
> From: "Micheál Healy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 8:47 AM
> Subject: Re: bit OT but..streaming PDF to browsers
>
>
> > I can't seem to get fop to show me a pdf wit IE 5.5.  Am I doing
something
> > wrong?  This is just for general info - it's working fine with 5.0.
> >
> > Micheál Healy
> >
> > - Original Message -
> > From: Dave Frankson <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 05, 2001 2:43 PM
> > Subject: Re: bit OT but..streaming PDF to browsers
> >
> >
> > > Actually it is the sloppy way IE deals with MIME types.  At the
> first
> > > hit, IE determines that it can't handle the content type and an
external
> > > plugin needs to handle the request.  So it discards the data after
> reading
> > > the http header and does a second hit passing the entire thing to
> Acrobat.
> > >
> > > We are using FOP to generate some reports that take 15 minutes to
build,
> > and
> > > this is the biggest performance hit.
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Alex McLintock" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, July 05, 2001 4:08 AM
> > > Subject: Re: bit OT but..streaming PDF to browsers
> > >
> > >
> > > > --- David Frankson <[EMAIL PROTECTED]> wrote:
> > > > > I get pdfs from servlets to work fine in IE, but I never have
> overcome
> > > > > the 2 hits per pdf.  Is there a solution to this?
> > > >
> > > > I've noticed the "two hits" issue but always assumed it was due to
my
> > > > rubbish proxy configuration.
> > > >
> > > > It may be that the first request is hust a "head" request to
determine
> > > > the datestamp of the response and thus to determine whether or not
> > > > it can retrieve the file from its cache. (It is presumably seeing
that
> > > > the datestamp is later than the cached version and thus requesting
> > > > the whole response the second time.)
> > > >
> > > > So one possibility is to check for a head request and when you get
it
> > > > to NOT generate the PDF but just output the headers saying that the
> > > > file would be new if you hadn't just done a head request.
> > > >
> > > > This is a bit off topic so learning how to do this is left as an
> > exercise
> > > > for the reader.
> > > >
> > > > Or if you are in London you can pay me to do it for you  :-)
> > > >
> > > > Alex
> > > >
> > > >
> > > > =
> > > > Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in
> > London
> > > > OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> > > > DR WHO COMPETITION:
> > > http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
> > > > Get Your XML 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]
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTE

Re: bit OT but..streaming PDF to browsers

2001-07-05 Thread Alex McLintock

 --- Dave Frankson <[EMAIL PROTECTED]> wrote: 
> PDFs from a servlet works in all broswers but you have to remember to do all
> of the following:
> 
> 
> 1.)  Set the headers:
> 
>response.setContentType("application/pdf");
>response.addHeader("Content-Disposition", "inline; filename=report.pdf");
> 

Your other suggestions I've heard of before - but haven't noticed this one.
Does it really work? What browsers support "Content-Disposition" ?
Where can I find out more?

Presumably I ought to add it to the FAQ.

Cheers

Alex


=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION: 
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML 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]




Re: bit OT but..streaming PDF to browsers

2001-07-05 Thread Dave Frankson

PDFs from a servlet works in all broswers but you have to remember to do all
of the following:


1.)  Set the headers:

   response.setContentType("application/pdf");
   response.addHeader("Content-Disposition", "inline; filename=report.pdf");

(Also try to structure your URL so that the last few characters are ".pdf".
This helps some stupid version of IE that you are returing a pdf)


2.)  Write out the size of the pdf:

   response.setContentLength( pdfDoc.length );



3.)  Flush your output stream:

   out.flush();
   out.close();


Dave



- Original Message -
From: "Micheál Healy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 8:47 AM
Subject: Re: bit OT but..streaming PDF to browsers


> I can't seem to get fop to show me a pdf wit IE 5.5.  Am I doing something
> wrong?  This is just for general info - it's working fine with 5.0.
>
> Micheál Healy
>
> - Original Message -
> From: Dave Frankson <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 2:43 PM
> Subject: Re: bit OT but..streaming PDF to browsers
>
>
> > Actually it is the sloppy way IE deals with MIME types.  At the
first
> > hit, IE determines that it can't handle the content type and an external
> > plugin needs to handle the request.  So it discards the data after
reading
> > the http header and does a second hit passing the entire thing to
Acrobat.
> >
> > We are using FOP to generate some reports that take 15 minutes to build,
> and
> > this is the biggest performance hit.
> >
> > Dave
> >
> >
> >
> >
> > - Original Message -
> > From: "Alex McLintock" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 05, 2001 4:08 AM
> > Subject: Re: bit OT but..streaming PDF to browsers
> >
> >
> > > --- David Frankson <[EMAIL PROTECTED]> wrote:
> > > > I get pdfs from servlets to work fine in IE, but I never have
overcome
> > > > the 2 hits per pdf.  Is there a solution to this?
> > >
> > > I've noticed the "two hits" issue but always assumed it was due to my
> > > rubbish proxy configuration.
> > >
> > > It may be that the first request is hust a "head" request to determine
> > > the datestamp of the response and thus to determine whether or not
> > > it can retrieve the file from its cache. (It is presumably seeing that
> > > the datestamp is later than the cached version and thus requesting
> > > the whole response the second time.)
> > >
> > > So one possibility is to check for a head request and when you get it
> > > to NOT generate the PDF but just output the headers saying that the
> > > file would be new if you hadn't just done a head request.
> > >
> > > This is a bit off topic so learning how to do this is left as an
> exercise
> > > for the reader.
> > >
> > > Or if you are in London you can pay me to do it for you  :-)
> > >
> > > Alex
> > >
> > >
> > > =
> > > Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in
> London
> > > OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> > > DR WHO COMPETITION:
> > http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
> > > Get Your XML 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]
> > >
> > >
> >
> >
> > -
> > 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: border-style problem in tables

2001-07-05 Thread pascal Baptiste


Weiqi Gao wrote:
[EMAIL PROTECTED]">On 04 Jul 2001 10:06:35 +0200, pascal Baptiste wrote:
  I'd like to have a piece of help on an problem I have encounteredwith tables in Fop 0.17.In fact I have a xsl stylesheet which contains xsl/fo instructionsin order to generate pdf from an xml tree. In this stylesheet, Ihave a table and I want to have each row's bottom border visiblein dashed style. So I use the attribute border-bottom-style of thefo:table-row  element with the value "dashed".  And it doesn'twork.  In fact it seems to be interpreted by the Driver as if ithad the value "solid" in state of  "dashed".  I have also triedwith Fop 0.19 and borders are invisible, so it's worse.
FOP doesn't do dashed borders.  Since 0.19.0, you can't draw borders ontable-rows by specifying border properties on the table-row alone.  Youhave to draw borders on individual cells, by specifying the borderproperties on the table-cell elements.I had lot of problems with tables with borders in FOP 0.19.0.  The onlything that worked reliably for me is to specify theborder-collapse="separate" property on the table, and use borders onlyon the table or table-cells, and never on table-rows or table-columns.Fortunately the effects I wanted are all achievable this way (throughsome wacky calculation in the stylesheets).


Thanks for your help. I didn't know that Fop didn't support dashed borders,
because in the features the tag border-style seems to be recognized. I could
have searched for ages!

[EMAIL PROTECTED]">
  
  


Re: bit OT but..streaming PDF to browsers

2001-07-05 Thread Micheál Healy

I can't seem to get fop to show me a pdf wit IE 5.5.  Am I doing something
wrong?  This is just for general info - it's working fine with 5.0.

Micheál Healy

- Original Message -
From: Dave Frankson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 2:43 PM
Subject: Re: bit OT but..streaming PDF to browsers


> Actually it is the sloppy way IE deals with MIME types.  At the first
> hit, IE determines that it can't handle the content type and an external
> plugin needs to handle the request.  So it discards the data after reading
> the http header and does a second hit passing the entire thing to Acrobat.
>
> We are using FOP to generate some reports that take 15 minutes to build,
and
> this is the biggest performance hit.
>
> Dave
>
>
>
>
> - Original Message -
> From: "Alex McLintock" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 4:08 AM
> Subject: Re: bit OT but..streaming PDF to browsers
>
>
> > --- David Frankson <[EMAIL PROTECTED]> wrote:
> > > I get pdfs from servlets to work fine in IE, but I never have overcome
> > > the 2 hits per pdf.  Is there a solution to this?
> >
> > I've noticed the "two hits" issue but always assumed it was due to my
> > rubbish proxy configuration.
> >
> > It may be that the first request is hust a "head" request to determine
> > the datestamp of the response and thus to determine whether or not
> > it can retrieve the file from its cache. (It is presumably seeing that
> > the datestamp is later than the cached version and thus requesting
> > the whole response the second time.)
> >
> > So one possibility is to check for a head request and when you get it
> > to NOT generate the PDF but just output the headers saying that the
> > file would be new if you hadn't just done a head request.
> >
> > This is a bit off topic so learning how to do this is left as an
exercise
> > for the reader.
> >
> > Or if you are in London you can pay me to do it for you  :-)
> >
> > Alex
> >
> >
> > =
> > Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in
London
> > OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> > DR WHO COMPETITION:
> http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
> > Get Your XML 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]
> >
> >
>
>
> -
> 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: bit OT but..streaming PDF to browsers

2001-07-05 Thread Dave Frankson

Actually it is the sloppy way IE deals with MIME types.  At the first
hit, IE determines that it can't handle the content type and an external
plugin needs to handle the request.  So it discards the data after reading
the http header and does a second hit passing the entire thing to Acrobat.

We are using FOP to generate some reports that take 15 minutes to build, and
this is the biggest performance hit.

Dave




- Original Message -
From: "Alex McLintock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 4:08 AM
Subject: Re: bit OT but..streaming PDF to browsers


> --- David Frankson <[EMAIL PROTECTED]> wrote:
> > I get pdfs from servlets to work fine in IE, but I never have overcome
> > the 2 hits per pdf.  Is there a solution to this?
>
> I've noticed the "two hits" issue but always assumed it was due to my
> rubbish proxy configuration.
>
> It may be that the first request is hust a "head" request to determine
> the datestamp of the response and thus to determine whether or not
> it can retrieve the file from its cache. (It is presumably seeing that
> the datestamp is later than the cached version and thus requesting
> the whole response the second time.)
>
> So one possibility is to check for a head request and when you get it
> to NOT generate the PDF but just output the headers saying that the
> file would be new if you hadn't just done a head request.
>
> This is a bit off topic so learning how to do this is left as an exercise
> for the reader.
>
> Or if you are in London you can pay me to do it for you  :-)
>
> Alex
>
>
> =
> Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> DR WHO COMPETITION:
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
> Get Your XML 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]
>
>


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




[GUMP] Build Failure - Fop

2001-07-05 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 0.19.0-CVS [1999-2001] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources

xslt 
in: ./build/src/codegen/svgelements.xml
style: ./src/codegen/propmaker.xsl
out: ./build/src/codegen/svgproperties.xml


xslt 
in: ./build/src/codegen/allprops.xml
style: ./build/src/codegen/genconst.xsl
out: ./build/src/org/apache/fop/fo/properties/Constants.java


xslt 
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java

file:///home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl; Line 12; Column 
14; Do colorkw.xml

xslt 
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/propmap.xsl
out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java


xslt 
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/enumgen.xsl
out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java


xslt 
in: ./build/src/codegen/svgproperties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/svg_ignore_this.java


xslt 
in: ./build/src/codegen/svgproperties.xml
style: ./build/src/codegen/propmap.xsl
out: ./build/src/org/apache/fop/fo/properties/SVGPropertyMapping.java


xslt 
in: ./build/src/codegen/svgproperties.xml
style: ./build/src/codegen/enumgen.xsl
out: ./build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java


xslt 
in: ./build/src/codegen/extproperties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/ext_ignore_this.java


xslt 
in: ./build/src/codegen/extproperties.xml
style: ./build/src/codegen/propmap.xsl
out: ./build/src/org/apache/fop/fo/properties/ExtensionPropertyMapping.java


xslt 
in: ./build/src/codegen/extproperties.xml
style: ./build/src/codegen/enumgen.xsl
out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java


xslt 
in: ./build/src/codegen/svgelements.xml
style: ./build/src/codegen/elements.xsl
out: ./build/src/org/apache/fop/svg/ele_ignore_this.java


xslt 
in: ./build/src/codegen/charlist.xml
style: ./build/src/codegen/code-point-mapping.xsl
out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java


xslt 
in: ./build/src/codegen/Courier.xml
style: ./build/src/codegen/font-file.xsl
out: ./build/src/org/apache/fop/render/pdf/fonts/Courier.java


xslt 
in: ./build/src/codegen/Courier-Oblique.xml
style: ./build/src/codegen/font-file.xsl
out: ./build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java


xslt 
in: ./build/src/codegen/Courier-Bold.xml
style: ./build/src/codegen/font-file.xsl
out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBold.java


xslt 
in: ./build/src/codegen/Courier-BoldOblique.xml
style: ./build/src/codegen/font-file.xsl
out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java


xslt 
in: ./build/src/codegen/Helvetica.xml
style: ./build/src/codegen/fo

RE: problem to define a new Driver()

2001-07-05 Thread Wolf Gustavo (SGC-EXT)

Merci Stéphane,
it worked. 

Gustavo

-Message d'origine-
De : Stéphane LEMAIRE [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi, 5. juillet 2001 13:36
À : [EMAIL PROTECTED]
Objet : RE: problem to define a new Driver()


The version of w3c.jar you use is too old, it seems he doesn't contains
SVGStringList class.
Make your classpath point on the w3c.jar of your fop distribution (in the
lib directory).

-Message d'origine-
De : Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 5 juillet 2001 11:10
À : '[EMAIL PROTECTED]'
Objet : problem to define a new Driver()


Hi again,
   when I am trying to define

Driver driver =  new Driver();

I get the following error:

java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGStringList
at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:90)

at org.apache.fop.apps.Driver.addElementMapping(Driver.java:314)
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:326)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:209)
at org.apache.fop.apps.Driver.(Driver.java:137)

I have imported the following, so I don't know why is there a problem:

import org.w3c.dom.svg.*;
import org.apache.fop.dom.svg.*;

Am I missing something else?

Thanks really a lot, and sorry for the newbie questions.

Gustavo

-
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: problem to define a new Driver()

2001-07-05 Thread Stéphane LEMAIRE

The version of w3c.jar you use is too old, it seems he doesn't contains
SVGStringList class.
Make your classpath point on the w3c.jar of your fop distribution (in the
lib directory).

-Message d'origine-
De : Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 5 juillet 2001 11:10
À : '[EMAIL PROTECTED]'
Objet : problem to define a new Driver()


Hi again,
   when I am trying to define

Driver driver =  new Driver();

I get the following error:

java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGStringList
at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:90)

at org.apache.fop.apps.Driver.addElementMapping(Driver.java:314)
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:326)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:209)
at org.apache.fop.apps.Driver.(Driver.java:137)

I have imported the following, so I don't know why is there a problem:

import org.w3c.dom.svg.*;
import org.apache.fop.dom.svg.*;

Am I missing something else?

Thanks really a lot, and sorry for the newbie questions.

Gustavo

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


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




external-graphic

2001-07-05 Thread Micheál Healy



Hi all,
 
I'm using Xalan to create my .fo files from XML and 
XSL, then rendering pdf's using fop (v.0.19).  I'm using JDK 1.3.  
This is all within a servlet.  I'm using Apache and Tomcat together as web 
server and servlet engine.  My problem is when I try to include 
'external-graphics'.  I want to be able to get the graphics using a 
relative path over the web server.  Problem is, when I put the path "http://localhost/VincentSite/img/checkbox.gif", 
it works, but "/VincentSite/img/checkbox.gif" doesn't.  The strange thing 
is, I use a dictionary aswell, and I can find that using either 
"/VincentSite/xml/Dictionary.xml", or "http://localhost/VincentSite/xml/Dictionary.xml", 
so I know I'm using the correct path.  Also, this happens within a larger 
application which uses relative paths everywhere in the XSL to get images, and 
has no problems.
 
I've looked elsewhere for a solution to this, and 
can't seem to find one, so any help would be much appreciated.
 
TIA
 
Micheál
 
 
Micheál HealyEngitech Ltd.[EMAIL PROTECTED]
 
        



problem to define a new Driver()

2001-07-05 Thread Wolf Gustavo (SGC-EXT)

Hi again,
   when I am trying to define 

Driver driver =  new Driver();

I get the following error: 

java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGStringList 
at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:90)

at org.apache.fop.apps.Driver.addElementMapping(Driver.java:314) 
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:326) 
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:209) 
at org.apache.fop.apps.Driver.(Driver.java:137) 

I have imported the following, so I don't know why is there a problem:

import org.w3c.dom.svg.*;
import org.apache.fop.dom.svg.*;

Am I missing something else?

Thanks really a lot, and sorry for the newbie questions.

Gustavo

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




RE: problem to run fop within a servlet

2001-07-05 Thread Wolf Gustavo (SGC-EXT)

Thanks a lot Keiron, it worked.

Just in case someone has this problem, the final stuff looks like:

private String parserClass= "org.apache.xerces.parsers.SAXParser";
...
XMLReader  parser = (XMLReader)
Class.forName(this.parserClass).newInstance();
 
parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true);

Gustavo

-Message d'origine-
De : Keiron Liddle [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi, 5. juillet 2001 09:59
À : [EMAIL PROTECTED]
Objet : Re: problem to run fop within a servlet


I'm not sure if this is the what you need but you may want to try putting
this in.

parser.setFeature("http://xml.org/sax/features/namespace-prefixes";,
  true);

On Thu, 05 Jul 2001 09:49:57 Wolf Gustavo (SGC-EXT) wrote:
> Hello,
>I am trying to run fop within my servlet.
> In order to do that, I use:
> 
> InputHandler inputHandler = new
> XSLTInputHandler(xmlInputSource,xslInputSource);
> InputSource inputSource = inputHandler.getInputSource();
> //FAILURE HERE
> XMLReader  parser = inputHandler.getParser();
> /**
> * Creates the driver telling it to write the output file to screen (AWT).
> */
> Driver driver = new Driver();
> driver.setRenderer(this.AWTRendererClass);
> driver.buildFOTree(parser, inputSource);
> driver.format();
> driver.render();
> 
> First and second lines run OK. Third line gives an exception:
> javax.xml.transform.TransformerConfigurationException: Namespace not
> supported by SAXParser exception.message: null 
> 
> There is in principle no problem with the xmlInputSource and
> xslInputSource,
> because when I run fop from the command line:
> 
> Fop -xml xmlInputSource.xml -xsl xslInputSource.xsl -pdf output.pdf (or
> option -awt), 
> 
> I get proper results.
> 
> COuld someone please tell me what am I doing wrong, or what am I missing?
> 
> Also, are the lines related to the Driver correct?
> 
> Thanks a lot for your help,
> Gustavo 


-
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: bit OT but..streaming PDF to browsers

2001-07-05 Thread Alex McLintock

 --- David Frankson <[EMAIL PROTECTED]> wrote: 
> I get pdfs from servlets to work fine in IE, but I never have overcome
> the 2 hits per pdf.  Is there a solution to this?

I've noticed the "two hits" issue but always assumed it was due to my 
rubbish proxy configuration.

It may be that the first request is hust a "head" request to determine
the datestamp of the response and thus to determine whether or not
it can retrieve the file from its cache. (It is presumably seeing that
the datestamp is later than the cached version and thus requesting 
the whole response the second time.)

So one possibility is to check for a head request and when you get it
to NOT generate the PDF but just output the headers saying that the 
file would be new if you hadn't just done a head request.

This is a bit off topic so learning how to do this is left as an exercise
for the reader. 

Or if you are in London you can pay me to do it for you  :-)

Alex


=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION: 
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML 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]




Re: Path of font-metrics file

2001-07-05 Thread Hoang Nam



Hello,
 
I 'd like just to share with you  
the solution for  the bug I posted about the path of font-metric 
file: it is a bug of Xerces 1-2-3 when parsing using the canonical pathname of 
the file. The Xerces 1.4.1 works better !
 

  - Original Message - 
  From: 
  Hoang Nam 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 04, 2001 12:06 
  PM
  Subject: Path of font-metrics file
  
  Hello,
   
  When I run Fop, Fop does not fond the metric-font 
  files that I generated  (In the userconfig.xml, I specified the path 
  of the meric-font files). It works only if I 
  put the metric-font files in the directory where I lauch 
FOP.
   
  Could somebody tell me how  specifying the 
  path of the metric-font files ?
   
  Thank you for help !
   
  Nam


Flexible object hight and relative positioning

2001-07-05 Thread bachner

Hi all,

I have a text that containes sometimes 1 line, sometimes 2 lines. The 
object which contains this text is initially defined only "1 line" high.
Depending on the object definition the text should be cut after the first 
line
or the object should be able to display both lines when converted to pdf.

The following object should be placed relative to the first object with a 
spacing of "1 line",
independent if the text contains 1 line or 2 lines.

How can I realize this with xsl:fo and fop?

Thanks in advance,
Eduard.


__
Eduard Bachner
Consulting

ISA Tools GmbH
Kupferstr. 36
D-70565 Stuttgart

Tel: +49(711)22769-51
Fax: +49(711)22769-29
Email: [EMAIL PROTECTED]
WWW: http://www.isa-tools.de

Die Liebe ist so unproblematisch wie ein Fahrzeug. Problematisch sind nur
die Lenker, die Fahrgäste und die Straße.

Franz Kafka


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




Re: problem to run fop within a servlet

2001-07-05 Thread Keiron Liddle

I'm not sure if this is the what you need but you may want to try putting
this in.

parser.setFeature("http://xml.org/sax/features/namespace-prefixes";,
  true);

On Thu, 05 Jul 2001 09:49:57 Wolf Gustavo (SGC-EXT) wrote:
> Hello,
>I am trying to run fop within my servlet.
> In order to do that, I use:
> 
> InputHandler inputHandler = new
> XSLTInputHandler(xmlInputSource,xslInputSource);
> InputSource inputSource = inputHandler.getInputSource();
> //FAILURE HERE
> XMLReader  parser = inputHandler.getParser();
> /**
> * Creates the driver telling it to write the output file to screen (AWT).
> */
> Driver driver = new Driver();
> driver.setRenderer(this.AWTRendererClass);
> driver.buildFOTree(parser, inputSource);
> driver.format();
> driver.render();
> 
> First and second lines run OK. Third line gives an exception:
> javax.xml.transform.TransformerConfigurationException: Namespace not
> supported by SAXParser exception.message: null 
> 
> There is in principle no problem with the xmlInputSource and
> xslInputSource,
> because when I run fop from the command line:
> 
> Fop -xml xmlInputSource.xml -xsl xslInputSource.xsl -pdf output.pdf (or
> option -awt), 
> 
> I get proper results.
> 
> COuld someone please tell me what am I doing wrong, or what am I missing?
> 
> Also, are the lines related to the Driver correct?
> 
> Thanks a lot for your help,
> Gustavo 


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




problem to run fop within a servlet

2001-07-05 Thread Wolf Gustavo (SGC-EXT)

Hello,
   I am trying to run fop within my servlet.
In order to do that, I use:

InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
InputSource inputSource = inputHandler.getInputSource();
//FAILURE HERE
XMLReader  parser = inputHandler.getParser();
/**
* Creates the driver telling it to write the output file to screen (AWT).
*/
Driver driver = new Driver();
driver.setRenderer(this.AWTRendererClass);
driver.buildFOTree(parser, inputSource);
driver.format();
  driver.render();

First and second lines run OK. Third line gives an exception:
javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser exception.message: null 

There is in principle no problem with the xmlInputSource and xslInputSource,
because when I run fop from the command line:

Fop -xml xmlInputSource.xml -xsl xslInputSource.xsl -pdf output.pdf (or
option -awt), 

I get proper results.

COuld someone please tell me what am I doing wrong, or what am I missing? 
Also, are the lines related to the Driver correct?

Thanks a lot for your help,
Gustavo 

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