RE: Logging
check the website/docs, there is a logging available, also there is an example Again, great for embedding, but would be useful to have from the command line. Especially for debugging in Windows as anything more than ~20 lines output is lost. Regards, Roland
RE: Logging
-Original Message- From: Roland Neilands [mailto:[EMAIL PROTECTED] Sent: June 16, 2002 8:02 PM To: [EMAIL PROTECTED] Subject: RE: Logging check the website/docs, there is a logging available, also there is an example Again, great for embedding, but would be useful to have from the command line. Especially for debugging in Windows as anything more than ~20 lines output is lost. Depends on your version of Windows, and maybe even not so much at that, unless you've got something ancient. On Win2K I either set my console to 500 or 1000 lines, and/or redirect with stuff like C:\runsomecommand logfile.txt 21 On all versions of Windows going back to Win95, plus plain DOS, you've got the MODE command that you can set your columns and lines with. Check out http://www.computerhope.com/modehlp.htm. Just some thoughts. AHS
RE: Logging
check the website/docs, there is a logging available, also there is an example Again, great for embedding, but would be useful to have from the command line. Especially for debugging in Windows as anything more than ~20 lines output is lost. Depends on your version of Windows, and maybe even not so much at that, unless you've got something ancient. WinME (aargh ...) On Win2K I either set my console to 500 or 1000 lines, and/or redirect with stuff like C:\runsomecommand logfile.txt 21 On all versions of Windows going back to Win95, plus plain DOS, you've got the MODE command that you can set your columns and lines with. Check out http://www.computerhope.com/modehlp.htm. The MODE command helps some, but won't go higher than 80 odd lines (no scrollback). I've tried redirection to file without success before but not 21 : this just threw up the FOP usage screen Don't know what to do with 2. I'll just keep debugging on UNIX if I need to. Thanks anyway, Roland
RE: Logging
-Original Message- From: Roland Neilands [mailto:[EMAIL PROTECTED] Sent: June 16, 2002 9:07 PM To: [EMAIL PROTECTED] Subject: RE: Logging [ SNIP ] The MODE command helps some, but won't go higher than 80 odd lines (no scrollback). I've tried redirection to file without success before but not 21 : this just threw up the FOP usage screen Don't know what to do with 2. I'll just keep debugging on UNIX if I need to. Yes, I mentioned the standard error redirection (or just redirection period) in case you had at least NT. I recall having had problems with just simple redirection with Win98. Another option is to run FOP from a decent text editor, like UltraEdit, where you can run DOS commands and executables, and capture the output. Yet another option is to get a better shell, like 4DOS/4NT. In the final analysis, though, if you've got UNIX handy, use that. :-) Arved Sandstrom
RE: Logging
Open up a dos window, click on the ms-dos icon in the top left corner, select properties and choose the layout tab. No such beast in WinME. Cheers, Roland.
Re: error handling
You're right. The command line wrapper can and probably should delete the target file in case of an error. Could you check if the return code is set on the command line? If not, we should fix that. It is. The problem is that FOP can't delete the output file in case of a problem if it only gets an OutputStream. And for optimization reasons FOP can't wait until the end to write the output to the target stream. But does fop should delete output file? I don't think so, that's responsibility of enclosing application, which has full control of OutputStream and can easily do this being catching FOPException. All very well for embeddding, but the command prompt version still leaves the corrupt file there no file at all would be preferable to a useless one. I hope the UNIX script sets the return code on errors (haven't tested yet). Cheers, Jeremias Märki
Re: png image in pdf
Try putting the image in a bit of svg. Batik supports png. On Fri, 2002-06-14 at 17:41, vikas waykole wrote: Hi I want to show png image in the pdf using fop0.20.3 but without jimi.jar Any help is highly appreciated. Thanks in advance Vikas
Re: set pdf dpi
Why do you want to change the DPI? In general the DPI is only used to convert cm, inch etc. to point values. Except for images there are other issues. On Fri, 2002-06-14 at 13:53, Harmen van Keimpema wrote: Hi all, Is it possible to tell fop to generate pdf files with different DPI settings than the default of 72? Cheers, Harmen
RE: error handling
Don't know about UNIX but on Windows it seems that the return code is always 0. Regards Con -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Monday, June 17, 2002 08:23 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: error handling You're right. The command line wrapper can and probably should delete the target file in case of an error. Could you check if the return code is set on the command line? If not, we should fix that. It is. The problem is that FOP can't delete the output file in case of a problem if it only gets an OutputStream. And for optimization reasons FOP can't wait until the end to write the output to the target stream. But does fop should delete output file? I don't think so, that's responsibility of enclosing application, which has full control of OutputStream and can easily do this being catching FOPException. All very well for embeddding, but the command prompt version still leaves the corrupt file there no file at all would be preferable to a useless one. I hope the UNIX script sets the return code on errors (haven't tested yet). Cheers, Jeremias Märki
Suppress rendering of page numbers possible ?
Hi FOPers ! If only printing very few pages it can be annoying to have the pages numbered at the bottom. Can I suppress this ? Maybe by setting some XSL parameter ( I print DocBooks using Norman Walsh's Stylesheet Distribution ) ? thanks Norbert Schöpke Developer Critical Reach AG - optimizing the manufacturing aftermarket - Garmischer Straße 19/21 81377 München Fon: +49 (89) / 54 26 21 - 54 Fax: +49 (89) / 54 26 21 - 15 mailto:[EMAIL PROTECTED] http://www.criticalreach.com
AW: Problems with nesting fo:graphic in fo:block?
Here is an example of a FO result from xslt file and xml file. The words Studenten an einer solchen Losung beyond the fo:external-graphic are not displayed in the pdf. fo:block text-align=justify space-after.optimum=10pt line-height=15pt text-decoration=none font-style=normal font-size=12pt font-family=serif color=black id= Das erste Semester bestand im wesentlichen aus der Definition konkreter Ziele, Evaluierungen verschiedener Techniken und der Entwicklung verschiedener Prototypen. Die Auflosung des Study-Shops der FH, der bis dahin fur die Verteilung von Skripten zustandig war fuhrte zur Entwicklung einer eines fo:basic-link text-align=justify space-after.optimum=10pt line-height=18pt text-decoration=underline font-weight=normal font-style=normal font-size=12pt font-family=sans-serif color=blue internal- destination=chapAltsystemManagementsystems/fo:basic-link (Altsystem), welches uber Weihnachten 2001 entwickelt wurde und auf einer Relationalen Datenbank beruht. Die Zugriffsraten hierauf beweisen das Interesse der Studenten an einer solchen Losung. fo:external-graphic id=picZugriffe src=picsSW/sortiertZugriff.jpg/ fo:block padding-top=3pt text-align=justify space-after.optimum=10pt line-height=17pt text-decoration=none font-weight=normal font-style=oblique font-size=11pt font-family=sans-serif color=#00a0a0 Abbildungen1: Top Zugriffe auf Dokumente im Altsystem /fo:block -Ursprungliche Nachricht- Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 16. Juni 2002 22:20 An: [EMAIL PROTECTED] Betreff: Re: Problems with nesting fo:graphic in fo:block? Jens Posingies wrote: We have a very, very strange problem: Our project DTD contains p- and graphic-tags which work absolutely fine, if the tags are called seperated - but when testet this combination (nesting graphic in p): p foo... graphic.../ bar... /p we lose the last line of the text beyond the graphic. Could this be a FOP problem with nesting fo:graphic in fo:block? All the other elements don't have problem with being nesting in p. Could you provide example of such buggy fo document? -- Oleg Tkachenko Multiconn International Ltd
Re: error handling
Roland Neilands wrote: All very well for embeddding, but the command prompt version still leaves the corrupt file there no file at all would be preferable to a useless one. Well, I believe it's feasible, but anyway this behaviour should be parametrizable. -- Oleg Tkachenko Multiconn International Ltd, Israel
Re: Suppress rendering of page numbers possible ?
Norbert Schoepke wrote: If only printing very few pages it can be annoying to have the pages numbered at the bottom. Can I suppress this ? Maybe by setting some XSL parameter ( I print DocBooks using Norman Walsh's Stylesheet Distribution ) ? That's depends on xsl stylesheet. AFAIK at least in docbook-xsl-1.49 you cannot change it. But anyway you can override particular docbook xsl template and removes page-number or introduce some new logic, they call it docbook customization. PS. You'd better ask on docbook-apps mail list. -- Oleg Tkachenko Multiconn International Ltd, Israel
Re: AW: Problems with nesting fo:graphic in fo:block?
Jens Posingies wrote: Here is an example of a FO result from xslt file and xml file. The words Studenten an einer solchen Losung beyond the fo:external-graphic are not displayed in the pdf. Sorry, I cannot reproduce the bug in fop 0.20.3. See attached image. Which fop version are you using? -- Oleg Tkachenko Multiconn International Ltd, Israel inline: Clipboard.jpg
Do we compulsarily need a DTD when we wish to convert a FO file t o PDF.
Dear Foppers, Do we compulsarily need a DTD when we wish to convert a FO file to PDF. Please guide me on this one. Coz what i have been doing is just coding an FO file and i render it to PDF Thanks in advance Max Max William D'costa | Interactive Designer | netdecisions 6th Floor, MET Building, Gen. A K Vaidya Chowk, Bandra Reclamation, Mumbai 400050, India t +91 (0)22 644 Ext: 165 f +91 (0)22 655 8048 http://www.netdecisions.com [EMAIL PROTECTED]
RE: Do we compulsarily need a DTD when we wish to convert a FO fi le t o PDF.
AFAIK you do not need a DTD at all to convert XML or FO files to PDF. However, when writing an XSLT stylesheet to convert XML to FO a DTD or Schema might come in handy. Cheers, Michiel $ -Original Message- $ From: Max Dcosta [mailto:[EMAIL PROTECTED] $ Sent: maandag 17 juni 2002 11:57 $ To: [EMAIL PROTECTED] $ Subject: Do we compulsarily need a DTD when we wish to $ convert a FO file $ t o PDF. $ $ $ Dear Foppers, $ $ Do we compulsarily need a DTD when we wish to convert a FO $ file to PDF. $ Please guide me on this one. Coz what i have been doing is $ just coding an FO $ file and i render it to PDF $ $ Thanks in advance $ $ Max $ $ Max William D'costa | Interactive Designer | netdecisions $ 6th Floor, MET Building, Gen. A K Vaidya Chowk, $ Bandra Reclamation, Mumbai 400050, India $ t +91 (0)22 644 Ext: 165 f +91 (0)22 655 8048 $ http://www.netdecisions.com $ [EMAIL PROTECTED] $
Re: Re: AW: Problems with nesting fo:graphic in fo:block?
I'm using FOP 0.20.3 like you, very strange. Nevertheless thanks for your time, Oleg. Oleg Tkachenko [EMAIL PROTECTED] schrieb am 17.06.2002, 12:26:13: Jens Posingies wrote: Here is an example of a FO result from xslt file and xml file. The words Studenten an einer solchen Losung beyond the are not displayed in the pdf. Sorry, I cannot reproduce the bug in fop 0.20.3. See attached image. Which fop version are you using? -- Oleg Tkachenko Multiconn International Ltd, Israel
RE: Do we compulsarily need a DTD when we wish to convert a FO fi le t o PDF.
Thank you so much Micheal. Cheers Max:) -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Monday, June 17, 2002 3:31 PM To: '[EMAIL PROTECTED]' Subject: RE: Do we compulsarily need a DTD when we wish to convert a FO fi le t o PDF. AFAIK you do not need a DTD at all to convert XML or FO files to PDF. However, when writing an XSLT stylesheet to convert XML to FO a DTD or Schema might come in handy. Cheers, Michiel $ -Original Message- $ From: Max Dcosta [mailto:[EMAIL PROTECTED] $ Sent: maandag 17 juni 2002 11:57 $ To: [EMAIL PROTECTED] $ Subject: Do we compulsarily need a DTD when we wish to $ convert a FO file $ t o PDF. $ $ $ Dear Foppers, $ $ Do we compulsarily need a DTD when we wish to convert a FO $ file to PDF. $ Please guide me on this one. Coz what i have been doing is $ just coding an FO $ file and i render it to PDF $ $ Thanks in advance $ $ Max $ $ Max William D'costa | Interactive Designer | netdecisions $ 6th Floor, MET Building, Gen. A K Vaidya Chowk, $ Bandra Reclamation, Mumbai 400050, India $ t +91 (0)22 644 Ext: 165 f +91 (0)22 655 8048 $ http://www.netdecisions.com $ [EMAIL PROTECTED] $
Re: How do i create a basic table of contents like this ???
You will find in the rest of this mail: - an extract of an XML file, - an extract of the XSLT file, - an sample servlet. that generates a PDF file with both a table of content and bookmarks (for PDF). DESCRIPTION OF THE SAMPLE - The goal of the sample is to create a PDF file containing book's description (a title and a description). Books are classified using book's type (such as Java, Perl). In the generated PDF: - I force a page break for each book's type, - I want bookmarks both for the book's types and the books To used the sample servlet, you first have to adapt pathname (in the beginning of the method called ProcessRequest) and then call yourserver/servlet/tstBookmark to generate PDF from xml and xsl files. THE XML FILE (tstBookmark.xml) -- Begin ?xml version=1.0 encoding=ISO-8859-1? page navigation name=XML menu id=1 labelExemples/label url pathinfo/xml/servlet/xmlHome/pathinfo /url descriptionExemples de Servlets permettant de valider l'utilisation des différents outils/description menu id=2 labelSnoop Servlet/label url pathinfo/xml/servlet/SnoopServlet/pathinfo querystringtrace=on/querystring /url descriptionServlet de test de l'environnement d'un servlet (Session, paramètres...)/description /menu menu id=3 labelTstXsltServlet (Xml File)/label url pathinfo/xml/servlet/TstXslManager/pathinfo /url descriptionTest de création d'une page HTML par processing XML / XSLT à partir d'un fichier XML/description /menu menu id=10 labelTstXsltServlet (DOM)/label url pathinfo/xml/servlet/xmlHome/pathinfo /url descriptionTest de création d'une page HTML par processing XML / XSLT à partir d'une arborescence DOM/description /menu menu id=9 labelTest FOP (File fo)/label url pathinfo/xml/servlet/TstFopFileFo/pathinfo /url descriptionCréation d'un fichier PDF à partir d'un fichier XSL-FO./description /menu menu id=11 labelTest FOP (File xml)/label url pathinfo/xml/servlet/TstFopFileXml/pathinfo /url descriptionCréation d'un fichier PDF à partir d'un fichier xml et d'une feuille de style xslt./description /menu menu id=12 labelTstXmlServlet (JDOM)/label url pathinfo/xml/servlet/xmlBookHome/pathinfo /url descriptionTest de création d'un arbre JDOM./description /menu /menu menu id=4 labelAccueil/label url pathinfo/xml/servlet/xmlHome/pathinfo /url menu id=5 labelRecherche/label menu id=6 labelAlphabétique/label /menu menu id=7 labelMulti-critères/label /menu /menu menu id=8 labelRéférence/label /menu /menu /navigation books book id=2 titleJava and XML/title parution month9/month year2001/year /parution isbn0-596-00197-5/isbn images imagejavaxml.gif/image thumbailjavaxml.gif/thumbail /images abstractNew chapters on Advanced SAX, Advanced DOM, SOAP, and data binding, as well as new examples throughout, bring the second edition of Java amp; XML thoroughly up to date. The book focuses entirely on using XML from Java applications./abstract descriptionWhile the XML buzz still dominates talk among Internet developers, the critical need is for information that cuts through the hype and lets Java programmers put XML to work. Java amp; XML shows how to use the APIs, tools, and tricks of XML to build real-world applications, with the end result that both the data and the code are portable. This second edition of Java amp; XML adds chapters on Advanced SAX and Advanced DOM, new chapters on SOAP and data binding, and new examples throughout. A concise chapter on XML basics introduces concepts, and the rest of the book focuses on using XML from your Java applications. Java developers who need to work with XML, or think that they will in the future--as well as developers involved in the new peer-to-peer movement, messaging, or web services--will find the new Java amp; XML a constant companion. This book covers: - The basics of XML, including DTDs, namespaces, XML Schema, XPath, and XSL - The SAX API, including all handlers, the SAX 2 extensions, filters, and writers - The DOM API, including DOM Level 2, Level 3, and the Traversal, Range, CSS, Events, and HTML modules. - The JDOM API, including the core, a look at XPath support, and JDOM as a JSR - Using web publishing frameworks like Apache Cocoon - Developing applications with XML-RPC - Using SOAP and UDDI for web services - Data Binding, using both DTDs and XML Schema for constraints - Building business-to-business applications with XML - Building information channels with RSS and dynamic content with XSP Includes a quick reference on SAX 2.0, DOM Level 2, and JDOM./description authors author id=2 lastnameMcLaughlin/lastname firstnameBrett/firstname
xhtml2fo.xsl working with FOP ?
Hi all, I want to convert a document containing some XHTML tags to PDF, using an xslt transformation. I've seen several post on the mailing list archive with the same question, few response, and the only stylesheet everyone seems to point to (http://www.antennahouse.com) does not work with xml-FOP, at least not with my very simple XHTML test file containing a simple table. Has somenone already succeed in producing a valid xsl:fo file using such a stylesheet ? Thanks in advance. Alex.
Configuring Portrait/landscape from PSRenderer
Hi all, Is there a way to programatically control portrait/landscape orientation with PSRenderer. Or thru some other means. Thank's Amine
Re: Configuring Portrait/landscape from PSRenderer
you can set your in your layout-master set something like this: fo:simple-page-master master-name=landscape page-height=21cm page-width=29.7cm margin-top=1cm margin-bottom=1.5cm margin-left=2cm margin-right=2cm fo:region-body margin-top=3cm/ fo:region-before extent=3cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master and you use that master for the pages you want in landscape... greetings, Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information.
Re: xhtml2fo.xsl working with FOP ?
Alexis HAUMONT wrote: I want to convert a document containing some XHTML tags to PDF, using an xslt transformation. I've seen several post on the mailing list archive with the same question, few response, and the only stylesheet everyone seems to point to (http://www.antennahouse.com) does not work with xml-FOP, at least not with my very simple XHTML test file containing a simple table. What exactly is the problem? Has somenone already succeed in producing a valid xsl:fo file using such a stylesheet ? I was using that stylesheet sometime ago and I found it rather sketchy, so I had to customize it to get support for html's frame/rules, cellspacing etc stuff. Anyway it worked exept of unsupported by fop objects. -- Oleg Tkachenko Multiconn International Ltd, Israel
Re: RedHat 7.3, JBoss-2.4.4-tomcat-4.0.1 - embedded FOP not working
what is the encoding you use on the machines? UTF-8 or ISO-8859-1 encoding, etc... what is your machines regional settings do they differ? and if they differ try to set them alike... what are the characters that were replaced by the ? if you find them try to write them through the #XXX; way... hope this helped a bit Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information.
Re: Configuring Portrait/landscape from PSRenderer
Thank's for the answer, but i want to control the printer so that it does print in landscape. when changing the page height and width, the printer still prints in portait ! Thank's again Amine -- Original Message --- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Mon, 17 Jun 2002 15:47:10 +0200 Subject: Re: Configuring Portrait/landscape from PSRenderer you can set your in your layout-master set something like this: fo:simple-page-master master-name=landscape page-height=21cm page-width=29.7cm margin-top=1cm margin-bottom=1.5cm margin-left=2cm margin-right=2cm fo:region-body margin-top=3cm/ fo:region-before extent=3cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master and you use that master for the pages you want in landscape... greetings, Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information. --- End of Original Message ---
background-image
Hello, I juste tested Fop 0.20.4rc. (I need to use background images.) The problem is there is no property to resize a background image and, whatever the size of the image, it always comes with huge dimensions, at least four times bigger than the page itself. Even if I use a very small image (100 x 100 pixels) it displays 15 x 15 inches (at least). I tried with gif, jpeg and png images. (I coudlnt get Fop to dispay an eps graphic.) Any idea ? Pierre-Yves
RE: Newbie questions ...
use xalann-3.1.x jar file -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 17, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: RE: Newbie questions ... I'm new to FOP and have a couple of questions. I'm trying to take a XML and convert it to FO using XSLT in order to display PDF from a servlet. I started with a static FO file and used the FopServlet to display it. This worked fine. However, I've tried using the XML/XSL parameters and I always get an error on the XSLTInputHandler which is caused by Provider org.apache.xalan.processor.TransformerFactoryImpl not found. I have put xalan-2.0.0.jar in my WEB-INF/lib directory. The URL I used to get this was: http://localhost/fop/servlet/fop?xml=C:\jakarta\fop-0.20.3\docs\xml-docs\f op\running.xmlxsl=C:\jakarta\fop-0.20.3\docs\xml-docs\xml2pdf.xsl Also, I'm putting the stack trace at the bottom of this email if anyone wants a look at it. My second question has to do with which XML object to use. Right now, I just have my XML in a file, but I want to generate it on the fly. The documentation says you can do this with DOM or SAX. Is there any problem doing it with JDOM? If not, does anyone know where I can find an example. Thank you, Mike Witt Stack Trace: Error: 500 Location: /fop/servlet/fop Internal Servlet Error: javax.servlet.ServletException at FopServlet.renderXML(FopServlet.java:125) at FopServlet.doGet(FopServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt pConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 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:118) at FopServlet.doGet(FopServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt pConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) - java.lang.reflect.InvocationTargetException: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java :110) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72 ) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102) at FopServlet.renderXML(FopServlet.java:118) at FopServlet.doGet(FopServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt pConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484)
Re: Do we compulsarily need a DTD when we wish to convert a FO file t o PDF.
Max Dcosta wrote: Do we compulsarily need a DTD when we wish to convert a FO file to PDF. Please guide me on this one. Coz what i have been doing is just coding an FO file and i render it to PDF While FOP will run without a DTD linked to the FO document, you'll probably get better error diagnostics from a separate validation step. FOP catches only very common errors, many malformed FO documents produce only NullPointerExceptions or omit some output (like if you forget fo:table-body around your fo:table-rows). J.Pietschmann
Re: xhtml2fo.xsl working with FOP ?
Alexis HAUMONT wrote: fo:flow flow-name=xsl-region-body fo:table-and-caption fo:table-and-caption is not implemented in FOP. The whole content is silently dropped. J.Pietschmann
Re: DOM or SAX?
Argyn Kuketayev wrote: Which parser does FOP use when launched from command-line? SAX or DOM ? Xerces implements both APIs. You should be able to use any Java parser which implements SAX2 and has namespace support. Being able to switch validation off is a bonus. I use FOP with the hacked up AElfred parser distributed with Saxon regularly. You can also feed DOM documents to an embedded FOP. J.Pietschmann
RE: DOM or SAX?
thanks. when I run FOP with dumping option, it says that SAX parser is used. I use FOP with the hacked up AElfred parser distributed with Saxon regularly. what's the fastest parser in your opinion? we are facing performance problems, I've to speed up the current configuration 4 times, or at least 2 times. Argyn
Re: DOM or SAX?
Argyn Kuketayev wrote: what's the fastest parser in your opinion? we are facing performance problems, I've to speed up the current configuration 4 times, or at least 2 times. Are you sure the parser is the bottleneck? FOP uses a huge amount of ressources for certain layout features. Network file systems and other processes forcing swapping are also candidates. Do a solid profiling before fiddling with minor details like a parser implementation. J.Pietschmann
RE: DOM or SAX?
Are you sure the parser is the bottleneck? no. I'm not sure. But I want to try another parser first, since it seems the easiest thing to do. I didn't find how to configure FOP to run with parsers from Saxon 6.5.2 distribution. Can I get any help on that? Argyn