Re: Example extension

2002-03-01 Thread Jeremias Maerki

 Have a look at: http://www.exslt.org/

That's an XSLT extension, not a FOP extension. Right?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +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]




RE: Corrupt PDF files?

2002-03-01 Thread Solange Desseignes

I had the same problem, but it was because the OutputStream is not closed in method 
run() of the class CommandLineStarter of the FOP library. I patched my FOP and closed 
the OutputStream, and have no more problems...

If you use this class try to close the Stream...

Solange Desseignes

-Message d'origine-
De : Lewis, Bobby [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 1 mars 2002 00:53
À : Fop-Dev (E-mail)
Objet : Corrupt PDF files?


I have a problem that is hard to debug. I am generating PDF files with FOP,
and the process is working ok most of the time. Sometimes though, the file
becomes corrupt (I'm sending the PDF back to a web browser based on a
request a user makes from a JSP).

Here's what we just found: we're using an external barcode font (a Code39
font). If we take the font out and don't use it in the PDF, it works fine
everytime. Otherwise, it works sometimes. There's no discernible factor as
to why it does/does not work, so I'm thinking there's something buggy in
FOP. Has anyone had any kind of unpredictable behavior before with FOP when
using external fonts? I'm using a TTF, I generated the metric file ok and
everything, because the barcode does show up correctly SOMETIMES.

Any help is greatly appreciated.

Bobby Lewis
Solutions Architect
Aivia
3100 McKinnon Suite 1000
Dallas, TX 75201 

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

2002-03-01 Thread fred redf

Hi Jeremias, and all other peoples here,

I would like to know where an arbitrary event has
occured during fop rendering. Let me give you a short
example:
i produce a *big* pdf with fop that should include
another pdf that was produced in another way (i my
case, it was produced by distiller from a word
document). That document should be included after a
fo:table.../fo:table that is somewhere inside my
document.
Second example : i want to watermark some specific
pages according to the content that is on these pages.
For that purpose, i use iText.
So what i want is some kind of mechanism (for exemple
something like fox:page-number id=myId/) that
would enable me to get an Hashtable that contains the
page where this event has occured. After getting this
hashtable, i could run iText-based process to finish
my pdf. 
Is that more clear? Excuse me for my
not-that-good-english, i have also to admit that it
was not that clear in my head.
Thanks,

Fred.


 --- Jeremias Maerki [EMAIL PROTECTED] a
écrit :  Do you just want to know how many pages were
 rendered (See
 Driver.getResults().getPageCount()) or do you want
 to insert PDF pages
 of your own while FOP is rendering? Or something
 else, because I think I
 don't undertand, yet, what you want?
 
  I would *love* to be able to be able to get the
 page
  number where some event append (for example by
 stating
  fox:page-number/ in .fo source) cause it would
  greatly improve fop/itext interfacing. I
 personnaly
  use fop to render most of my content but i finish
 the
  work using itext (to watermark content, reorganize
  pages to produce booklets, insert some annexes
 written
  in pdf .. etc)
  Thanks a lot, whether you implement that or not!
 
 Cheers,
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Tel. +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]
  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




Re: FOP Interfaces

2002-03-01 Thread Jeremias Maerki

I get it now, thanks. I think that's an interesting thing. Definitely,
worth putting on the task list. I could use something like that, too.

 I would like to know where an arbitrary event has
 occured during fop rendering. Let me give you a short
 example:
 i produce a *big* pdf with fop that should include
 another pdf that was produced in another way (i my
 case, it was produced by distiller from a word
 document). That document should be included after a
 fo:table.../fo:table that is somewhere inside my
 document.
 Second example : i want to watermark some specific
 pages according to the content that is on these pages.
 For that purpose, i use iText.
 So what i want is some kind of mechanism (for exemple
 something like fox:page-number id=myId/) that
 would enable me to get an Hashtable that contains the
 page where this event has occured. After getting this
 hashtable, i could run iText-based process to finish
 my pdf. 
 Is that more clear? Excuse me for my
 not-that-good-english, i have also to admit that it
 was not that clear in my head.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +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]




cvs commit: xml-fop/test createpdf.sh

2002-03-01 Thread chrisg

chrisg  02/03/01 04:44:40

  Modified:.Tag: fop-0_20_2-maintain CHANGES build.bat build.sh
build.xml fop.bat
   docs/design Tag: fop-0_20_2-maintain build.bat build.sh
   docs/examples Tag: fop-0_20_2-maintain runtests.bat
runtests.sh
   docs/examples/embedding Tag: fop-0_20_2-maintain
FopPrintServlet.java FopServlet.java
   docs/xml-docs Tag: fop-0_20_2-maintain makedoc.bat
makedoc.sh
   test Tag: fop-0_20_2-maintain createpdf.sh
  Added:   lib  Tag: fop-0_20_2-maintain logkit-1.0.jar
  Removed: lib  Tag: fop-0_20_2-maintain logkit-1.0b4.jar
  Log:
  updated logkit from 1.0b4 to 1.0
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.10.2.8  +2 -1  xml-fop/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /home/cvs/xml-fop/CHANGES,v
  retrieving revision 1.10.2.7
  retrieving revision 1.10.2.8
  diff -u -r1.10.2.7 -r1.10.2.8
  --- CHANGES   18 Feb 2002 18:27:36 -  1.10.2.7
  +++ CHANGES   1 Mar 2002 12:44:39 -   1.10.2.8
  @@ -22,6 +22,8 @@
 Submitted by:  Ralph LaChance [EMAIL PROTECTED]
   - Proper use of font encodings for native fonts
 Submitted by: Peter S. Housel ([EMAIL PROTECTED]) and Rainer Garus 
([EMAIL PROTECTED])
  +- fixed Marker (Christian Geisert)
  +- updated logkit from 1.0b4 to to 1.0 (Christian Geisert)
   
   *** Tables
   - Implement the proportional-column-width() function in table-column and
  @@ -79,7 +81,6 @@
 Submitted by:  Ralph LaChance [EMAIL PROTECTED]
   - Improved i18n support for AWT viewer (Japanese dialogs)
 Submitted by: Satoshi Ishigami ([EMAIL PROTECTED])
  -
   
   *** TXTRenderer
   - Generated text is written in UTF-8 encoding instead of ISO-8859-1
  
  
  
  1.14.2.2  +1 -1  xml-fop/build.bat
  
  Index: build.bat
  ===
  RCS file: /home/cvs/xml-fop/build.bat,v
  retrieving revision 1.14.2.1
  retrieving revision 1.14.2.2
  diff -u -r1.14.2.1 -r1.14.2.2
  --- build.bat 11 Feb 2002 00:43:43 -  1.14.2.1
  +++ build.bat 1 Mar 2002 12:44:39 -   1.14.2.2
  @@ -7,7 +7,7 @@
   
   set LIBDIR=lib
   set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\ant-1.3-optional.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar

  -set 
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\logkit-1.0b4.jar;%LIBDIR%\avalon-framework-4.0.jar

  +set 
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\logkit-1.0.jar;%LIBDIR%\avalon-framework-4.0.jar

   
   set ANT_HOME=%LIBDIR%
   
  
  
  
  1.15.2.2  +1 -1  xml-fop/build.sh
  
  Index: build.sh
  ===
  RCS file: /home/cvs/xml-fop/build.sh,v
  retrieving revision 1.15.2.1
  retrieving revision 1.15.2.2
  diff -u -r1.15.2.1 -r1.15.2.2
  --- build.sh  11 Feb 2002 00:43:43 -  1.15.2.1
  +++ build.sh  1 Mar 2002 12:44:39 -   1.15.2.2
  @@ -14,7 +14,7 @@
   fi
   LIBDIR=lib
   
LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/ant-1.3-optional.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar
  
-LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/avalon-framework-4.0.jar
  
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/logkit-1.0.jar:$LIBDIR/avalon-framework-4.0.jar
   
   ANT_HOME=$LIBDIR
   
  
  
  
  1.44.2.6  +2 -2  xml-fop/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/xml-fop/build.xml,v
  retrieving revision 1.44.2.5
  retrieving revision 1.44.2.6
  diff -u -r1.44.2.5 -r1.44.2.6
  --- build.xml 20 Feb 2002 17:37:06 -  1.44.2.5
  +++ build.xml 1 Mar 2002 12:44:39 -   1.44.2.6
  @@ -138,7 +138,7 @@
  include name=lib/xalan.LICENSE.txt/
  include name=lib/batik.jar/
  include name=lib/batik.LICENSE.txt/
  -   include name=lib/logkit-1.0b4.jar/
  +   include name=lib/logkit-1.0.jar/
  include name=lib/logkit.LICENSE.txt/
  include name=lib/avalon-framework-4.0.jar/
  include name=lib/avalon.LICENSE.txt/
  @@ -275,7 +275,7 @@
   taskdef name=runTest classname=org.apache.fop.tools.anttasks.RunTest/
   
   property name=main.class value=org.apache.fop.apps.Fop/
  -property name=runtime.classpath value=lib/xerces-1.2.3.jar 
lib/xalan-2.0.0.jar lib/xalanj1compat.jar lib/batik.jar lib/jimi-1.0.jar 
lib/logkit-1.0b4.jar 

Re: FOP Interfaces

2002-03-01 Thread fred redf

Thanks Jeremias

--- Jeremias Maerki [EMAIL PROTECTED] a
écrit :  I get it now, thanks. I think that's an
interesting
 thing. Definitely,
 worth putting on the task list. I could use
 something like that, too.
 
  I would like to know where an arbitrary event has
  occured during fop rendering. Let me give you a
 short
  example:
  i produce a *big* pdf with fop that should include
  another pdf that was produced in another way (i my
  case, it was produced by distiller from a word
  document). That document should be included after
 a
  fo:table.../fo:table that is somewhere inside
 my
  document.
  Second example : i want to watermark some specific
  pages according to the content that is on these
 pages.
  For that purpose, i use iText.
  So what i want is some kind of mechanism (for
 exemple
  something like fox:page-number id=myId/) that
  would enable me to get an Hashtable that contains
 the
  page where this event has occured. After getting
 this
  hashtable, i could run iText-based process to
 finish
  my pdf. 
  Is that more clear? Excuse me for my
  not-that-good-english, i have also to admit that
 it
  was not that clear in my head.
 
 Cheers,
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Tel. +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]
  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




output PDF via java.io.Writer

2002-03-01 Thread Holger Prause

Hello,

I am using Fop-0.20.2

Is it generally possible to output a pdf stream via a java.io.Writer object
? 

I know its better to use OutputStreams objects to output binary streams as
pdf,but i want to use a JSPWriter(in a TagLibrary Class) to output a Pdf
Stream so that i can use it as embedded pdf.

The following sourcode should do the the job


InputSource foInputSource = getInputSource();
//buffer fo outputStream
ByteArrayOutputStream foBufferStream = new ByteArrayOutputStream();
Driver driver = new Driver(foInputSource,foBufferStream);
driver.setRenderer(driver.RENDER_PDF);
//perform the fo rendering process
driver.run();

String foOutString = new String(foBufferStream.toByteArray());
//the writer reference is as reference to the JSPWriter which was passed as
Argument
writer.write(foOutString);
writer.flush();

The problem is that when i convert a ByteArrayOutputStream to a String ,
some characters are converted wrong.

For Example , the HEX 8d will be converted to HEX 3f , how can i avoid this
? What encoding do i have to use to avoid this ?

Thank you in advance,

Holger



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




AW: output PDF via java.io.Writer

2002-03-01 Thread Beer, Christian

 Is it generally possible to output a pdf stream via a java.io.Writer
object?

Well a java.io.Writer is used for character output. A PDF is binary output,
especialy if you use filters (Flate, ...)

I think it could be possible, but no good idea! The problem is, that a
writer
handles character data (2 bytes) and it can convert the data (for example
\n\r
to \r or something) and then the offsets in the PDF don't fit any more.

The more I think about it, I'd say let it be, also because a JSP is
constructed
to return character data, not binary. We tried to implement a
download-JSP, but
implemented that in a servlet, because there were many errors and caveats.

Greetings

Christian Beer

 -Ursprüngliche Nachricht-
 Von: Holger Prause [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. März 2002 13:59
 An: [EMAIL PROTECTED]
 Betreff: output PDF via java.io.Writer
 
 
 Hello,
 
 I am using Fop-0.20.2
 
 Is it generally possible to output a pdf stream via a 
 java.io.Writer object
 ? 
 
 I know its better to use OutputStreams objects to output 
 binary streams as
 pdf,but i want to use a JSPWriter(in a TagLibrary Class) to 
 output a Pdf
 Stream so that i can use it as embedded pdf.
 
 The following sourcode should do the the job
 
 
 InputSource foInputSource = getInputSource();
 //buffer fo outputStream
 ByteArrayOutputStream foBufferStream = new ByteArrayOutputStream();
 Driver driver = new Driver(foInputSource,foBufferStream);
 driver.setRenderer(driver.RENDER_PDF);
 //perform the fo rendering process
 driver.run();
 
 String foOutString = new String(foBufferStream.toByteArray());
 //the writer reference is as reference to the JSPWriter which 
 was passed as
 Argument
 writer.write(foOutString);
 writer.flush();
 
 The problem is that when i convert a ByteArrayOutputStream to 
 a String ,
 some characters are converted wrong.
 
 For Example , the HEX 8d will be converted to HEX 3f , how 
 can i avoid this
 ? What encoding do i have to use to avoid this ?
 
 Thank you in advance,
 
 Holger
 
 
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 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: converting SVG to PDF

2002-03-01 Thread James Richardson

fred redf wrote:

 
 
 Hi Boby,
 
 The prob is that svg renderer *need* to connect to an
 X11 server cause batik relies on AWT. When you run it
 via the command line there is no prob (assuming you
 actually are connected to some kind of X11 server). I
 found a workaround by running servlet container in a
 shell where i export correct DISPLAY variable first. I
 know it's a little bit dirty but i don't know any
 better solution...



Please see my post re PJA for a solution about this, or use Xvfb.

Setting the DISPLAY variable is going to cause you big problems if the X 
server you are connected to goes down.

cheers

james






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




Problem with TTFReader

2002-03-01 Thread Richard Waginger

I tried to convert times.ttf font from my winXP fonts directory, but I failed. I used 
the command like in example on font support page, but program allways ended with 
exception: 

command: 
c:\Fop-0.20.2java build\org.apache.fop.fonts.apps.TTFReader 
C:\windows\fonts\times.ttf C:\fontmetrics\times.xml 

Respond: 
Exception in thread main java.lang.NoClassDefFoundError: 
build\org/apache/fop/fonts/apps/TTFReader 

Later I tried many variants (e.g. without build\ or c:\Fop-0.20.2java -cp 
build\fop.jar;lib\xerces.jar;lib\xalan.jar;lib\batik.jar 
org.apache.fop.fonts.apps.TTFReader ... ) but with same result. Where is the problem ? 
In configuration of JDK or where ? (I use JDK 1.3) 

Please help me, thnx 

--
Najcerstvejsie spravy zo SME e-mailom - http://www.sme.sk/emailom/

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




Re: [REDESIGN] TextLayoutManager whitespace handling

2002-03-01 Thread Karen Lease

Arved, are you sure about that? It's a bit confusing since the spec
(actually it's 7.15.12 not 7.5.12 as I mistakenly wrote last time) says
white-space-collapse happens during area building but only talks about
adjacent flow objects not at all about areas. Well actually it does. It
says that the collapsed space doesn't generate an area.
I thought only the suppress-at-line-break (7.16.3) was actually based
on areas.

I agree about the definition of ajacent areas (4.2.5) and I don't
believe there is a clear definition of ajacent FO, so maybe it's best to
follow your interpretation.

In fact, my white-space-collapse code in the new Fop is currently
collapsing them during FO tree construction (== refinement) after doing
the white-space and linefeed handling. So if it's supposed to deal with
areas it's not right.


-Karen


Arved Sandstrom wrote:
 
 I should add, if the 2 spaces end up on the same line, of course. Until we
 do layout we don't know.
 
 -Original Message-
 From: Arved Sandstrom [mailto:[EMAIL PROTECTED]]
 Sent: February 28, 2002 7:03 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [REDESIGN] TextLayoutManager whitespace handling
 
 Comments below.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Karen Lease
 Sent: February 28, 2002 6:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [REDESIGN] TextLayoutManager whitespace handling
 
 [ SNIP ]
 
 That's one thing. In your example, even supposing we are doing
 white-space collapse, the issue is which one gets thrown out. In 7.5.12
 (white-space-collapse), the spec says: .. [if] the immediately
 preceding flow object is a character flow object with a character
 classified as white space in XML ... that flow object shall not generate
 an area.
 
 So if we think that the the space after text and the one before more
 are adjacent, which is strictly speaking not the case, I'd say the one
 before more disappears. If we aren't collapsing or we decide that the
 intervening newline makes them not adjacent, there are two spaces and
 the second is underlined.
 
 -Karen
 
 Keiron Liddle wrote:
 
  Hi Karen,
 
  I seem to be having a bit of trouble getting that text parsing right. I
  was mainly just trying to get something to work to see on the output.
  It should be able to be simplified thanks to the earlöier whitespace
  handling.
  I still wonder what should be done in a situation like:
  blocksome text inline text-decoration=underline more
  textinlineblock
  Is the space before more underlined or not?
 
 Pursuant to my earlier post on this question, I think we are all agreed that
 score-spaces dictates whether or not the space immediately preceding the
 word more in the example gets underlined or not, _assuming_ that that
 space survives.
 
 As Karen points out, initial value for white-space-collapse will make the
 second space go away (leastways I concur in that interpretation). Adjacency
 is based on whether or not the 2 areas have a block- or
 inline-stacking-constraint, and the two spaces in question have an
 inline-stacking-constraint by 3a in Inline Stacking Constraints, Section
 4.2.5, so are adjacent.
 
 Regards,
 AHS
 
 -
 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: Example extension

2002-03-01 Thread Matt Savino

I've been told than an extension is the way to go for these two needed
features:

1. Add a string ['(Continued)'] to a table header if the table spans
multiple pages. Note these tables are part of the content and can start
anywhere in the page. They could be seen more like paragraphs or blocks
with a title. Any other solution to this problem is acceptable. 

2. Separate page number display for a subsection. IE - master document
is page 4 of 7, but subsection is page 2 of 3.

Please let me know if I'm missing any existing functionality that solves
these problems. I am planning to look into writing an extension some
day. An example would certainly help.


In the meantime, someone mentioned using iText for final stage add-on
functionality like this. Does that make any sense here?

Thanks a lot,
Matt


BTW, if anyone is in there poking around with the redesign, and feels
like creating a table-add-something-different-to-header-after-break
property, or even table-omit-header-before-break, I'd certainly love you
for it.



Keiron Liddle wrote:
 
 Hi,
 
 It really depends on what type of extension you want to do.
 This is an area that will change and become much easier in the future (in
 theory). Examples and help will be available for the new way of doing
 things.
 
 Could you tell us what you want your extension to do so that we have more
 ideas on what type of extensions people are thinking about. Then we can
 work out how they should be handled if possible.
 
 So to answer your question, there are some extensions but it really
 depends on what you want to do.
 
 On 2002.03.01 08:33 Adrian Edwards wrote:
  Hi fop-dev,
 
  Has anyone written a simple(ish) FOP extension that they would be
  willing to share with the list (or even just me) as an example?  I'm
  talking full jar file here.  The lack of examples (other than the quite
  complicated SVG extension) in the docs and on the mailing lists is quite
  frustrating.
 
  We don't have to go through the work of writing it up for publication
  (yet).  Just seeing the mechanics of someone else's jar would be great
  for beginners.
 
  Thanks in advance.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




DO NOT REPLY [Bug 6813] New: - FopServlet does not work!

2002-03-01 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=6813.
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=6813

FopServlet does not work!

   Summary: FopServlet does not work!
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Major
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


FopServlet and FopPrintServlet, as provided in the 20.3 distribution, do not 
work with params 'xsl' and 'xml'.  They DO work with param 'fo'

The following error traceback is generated when FopServlet is invoked as:
 
http://blah.blah.blah/fop/servlet/FopServlet?xml=c:/testing/f77PDF-
pg1.xmlxsl=c:\testing/toPDF.xsl

Note the above xsl file contains the line:

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


error traceback-
Error: 500
Location: /fop/servlet/FopServlet
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:131)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
Root cause:
org.apache.fop.apps.FOPException
at org.apache.fop.apps.XSLTInputHandler.getParser
(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:124)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException: org.apache.fop.apps.FOPException: 
stylesheet requires attribute: version
at org.apache.fop.apps.TraxInputHandler.getXMLFilter
(TraxInputHandler.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.fop.apps.XSLTInputHandler.getParser
(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:124)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

javax.xml.transform.TransformerConfigurationException: stylesheet requires 
attribute: version
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates
(TransformerFactoryImpl.java:815)