Re: wrong namespace??
Esteban Gonzalez wrote: This is taking forevr! So I created PDFGenerator.java ( just for testing... attached ) and did the transformation as J.Pietschmann pointed out... Interesting, the test program fails if Xalan 2.0.0 is in the classpath but works if Saxon 6.5.4 is substituted for Xalan. Seems like you have hit a Xalan bug. The 2.0.0 version is quite a bit outdated meanwhile, download the latest Xalan version from http://xml.apache.org/dist and see whether the problem goes away if you use it. J.Pietschmann
Re: FO to PCL interrupts at SVG
Darya Said-Akbari wrote: When I convert my FO file to PCL with FOP 0.20.3 I get the error message: !!! TODO: getWidth() ... How shall I understand the error message? FO to PCL do not work when there is SVG in the FO file? The implementation of the PCL renderer is still incomplete. So, what to do when there is need for SVG images in a printout? It may already help to specify an explicit width on the fo:external-graphic object. You can also render the SVG separately to a bitmap format, like uncompressed JPG, using Batik, and use the bitmap in fo:external-graphic. J.Pietschmann
Is there an archive of this list?
Kurt
Re: Is there an archive of this list?
http://marc.theaimsgroup.com/?l=fop-user - Original Message - From: "Hahn Kurt (CHA)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 9:16 AM Subject: Is there an archive of this list? > Kurt >
RE: Is there an archive of this list?
Hi, While trying to generate a PDF from a xml using a xsl... the pdf generated is a 0KB one. Can anybody tell me the probable reason for this TIA, Regards, Chandrakant. -Original Message- From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 12:46 PM To: '[EMAIL PROTECTED]' Subject: Is there an archive of this list? Kurt
Re: SVGContext Exception
On Wed, 2002-06-05 at 18:26, Ian Taylor wrote: > I have the latest > version of batik.jar and cannot see what might be wrong. That is what is wrong. You must use the batik that comes with FOP. When the batik api stops changing then you will be able to use the latest batik.
Re: Problem with PDF generation [was: Is there an archive of this list?]
It is VERY bad practive to reply to a mail when you want to start a new thread! Not even the subject is changed. The empty PDF often happens when an exception/error occurs. You'll have to post more information on your problem: error message, stacktrace/log, version of FOP, platform where the error occurs. Otherwise we can't help you. > While trying to generate a PDF from a xml using a xsl... > the pdf generated is a 0KB one. > Can anybody tell me the probable reason for this > TIA, 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
Re: Problem with FOP outline extension
Problem solved: I've add the declaration in the xsl:stylesheet tag. and then, the bookmarks are correctly generated in the PDF file. Thanks. - Original Message - From: "J.Pietschmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 12:56 AM Subject: Re: Problem with FOP outline extension > Bruno Rondepierre wrote: > > THE XSL FILE (tstBookmark.xslfo) > Problem solved. You hit a Xalan bug. > If you've looked into the log (hopefully, there *is* a log), > you'd have seen FOP error messages containing: > "...unknown...null^outline..." > > > -Begin > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > > xmlns:fo="http://www.w3.org/1999/XSL/Format";> > ... > > > > http://www.w3.org/1999/XSL/Format"; > > xmlns:fox="http://xml.apache.org/fop/extensions";> > ... > > > > > > > > > > > > > > > At this point, the fox: namespace prefix is undeclared. > The declaration above in the fo:root element has gone out of > scope. The processor should have complained about this. > > Move the declaration for the fox: prefix to the xsl:stylesheet > element. BTW the fo: declaration on fo:root is redundant. > > J.Pietschmann > >
Use a relative path
I need to add a graphics file, originally placed in the same directory where my sitemap is located. ¨There's no problem if I use an absolute path, the file is displayed. If I use a relative path, nothing. The file is very small, so I even copied in other subdirectories, but still nothing. How can I do that? working: not working: Kurt
Use a relative path do insert a graphics file (Re-post with bett er title)
I need to add a graphics file, originally placed in the same directory where my sitemap is located. ¨There's no problem if I use an absolute path, the file is displayed. If I use a relative path, nothing. The file is very small, so I even copied in other subdirectories, but still nothing. How can I do that? working: not working: Kurt
Problem with PDF generation
While trying to generate a PDF from a xml using a xsl... the pdf generated is a 0KB one. Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); XMLReader parser = input.getParser(); driver.setOutputStream(new FileOutputStream(pdffile)); driver.render(parser, input.getInputSource()); I'm using FOP version fop-0.20.3. There were no errors while pdf generation. What could be the problem ?? Regards, Chandrakant.
Re: Use a relative path
I'm not sure it makes the difference but I always precede the relative path with the "file:" string like this : or file: and it works Hope this helps Flo - Original Message - From: "Hahn Kurt (CHA)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 10:27 AM Subject: Use a relative path > I need to add a graphics file, originally placed in the same directory where > my sitemap is located. > ¨There's no problem if I use an absolute path, the file is displayed. If I > use a relative path, nothing. The file is very small, so I even copied in > other subdirectories, but still nothing. How can I do that? > > working: > src="D:\jakarta-tomcat-4.0.1\webapps\cocoon\mount\AigleK\ecu.jpg"/> > not working: > > > Kurt >
RE: Problem with PDF generation
Did you try to run the transformation (XML & XSL) without generating a PDF? If that doesn't produce any output your PDF will be empty. $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 10:42 $ To: [EMAIL PROTECTED] $ Subject: Problem with PDF generation $ $ $ $ While trying to generate a PDF from a xml using a xsl... $ the pdf generated is a 0KB one. $ $ Driver driver = new Driver(); $ driver.setRenderer(Driver.RENDER_PDF); $ XMLReader parser = input.getParser(); $ driver.setOutputStream(new FileOutputStream(pdffile)); $ driver.render(parser, input.getInputSource()); $ $ I'm using FOP version fop-0.20.3. $ There were no errors while pdf generation. $ What could be the problem ?? $ $ Regards, $ Chandrakant. $
Re: Use a relative path do insert a graphics file (Re-post with bett er title)
Hi Kurt, AFAIK relative image paths do not work when FOP is used within Cocoon, due to FOP (or any Cocoon Serializer for that matter) not getting info about the location of the current XSLT file. Maybe using http URLs would work? http://myserver/images/thisone.gif"/> But I haven't tested it. Otherwise you'll have to use an absolute path, which you can make configurable in the sitemap or in a separate XML file. -Bertrand
FOP outline extension specification
Is there a resource on the web that lists all the elements of the FOP outline extension ? I would like to make treeview-like outline : 1. Bookmark 1 1.1 Bookmark 1.1 1.2 Bookmark 1.2 2. Bookmark 2 etc ... I can't find a way to force the indentation. Thanks Flo
Block and page changing
Hi all. I have a problem. It happens that sometimes i have blocks that start at the end of a page and get cutted just to follow on the next one page. What I would like to do is make those blocks start at the beginning of the next page. Can anyone tell me what do I have to do to achieve this? Thanks. Ramon.
AW: Block and page changing
Just add one of the following properties to your fo:block: break-after="page" or break-before="page" (whatever you prefer). Jens Posingies Lueneburg (Germany) -Ursprüngliche Nachricht-Von: Ramon Maria Gallart [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 6. Juni 2002 11:19An: [EMAIL PROTECTED]Betreff: Block and page changing Hi all. I have a problem. It happens that sometimes i have blocks that start at the end of a page and get cutted just to follow on the next one page. What I would like to do is make those blocks start at the beginning of the next page. Can anyone tell me what do I have to do to achieve this? Thanks. Ramon.
Re: Block and page changing
If you don't want to force a page-break before any block, you should use the keep-together property. Unfortunately fop doesn't handle this property on block elements. A solution can be to insert the block in a table. Then you can apply keep-together on the table-row element. Flo - Original Message - From: Ramon Maria Gallart To: [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 11:18 AM Subject: Block and page changing Hi all. I have a problem. It happens that sometimes i have blocks that start at the end of a page and get cutted just to follow on the next one page. What I would like to do is make those blocks start at the beginning of the next page. Can anyone tell me what do I have to do to achieve this? Thanks. Ramon.
Table alignment
Hello all, I know this is a FAQ but I don't have the optimum solution yet I want to align a table, whose width is smaller than the body width, to be in the center of the page body I think I read a solution before on this list, suggesting to put the table inside the cell of another one-cell table, but I don't know which attribute to use and on which element. BTW I'm stuck to version 0.17.0 of FOP Thanks a lot
Re: FOP outline extension specification
Did you try makíng your own (list item) element? blockindentation ain't hard with constucts like: - you probably won't need the list-item-label, to "hit" your indented code put your bookmarks within the tags within your xml. for the numbering you might take a look at markus -Ursprüngliche Nachricht- Von: Florence Deforge <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Datum: Donnerstag, 6. Juni 2002 11:02 Betreff: FOP outline extension specification >Is there a resource on the web that lists all the elements of the FOP >outline extension ? >I would like to make treeview-like outline : > >1. Bookmark 1 >1.1 Bookmark 1.1 >1.2 Bookmark 1.2 >2. Bookmark 2 >etc ... > >I can't find a way to force the indentation. > >Thanks > >Flo > >
RE: Block and page changing
Thanks Jens and Florencs for your answers. They all both fit my needs. Ramon.
Run FOP from an ASP page
I've been trying to run FOP from an ASP page with little success. I can get the .fo file generated 'on the 'fly' but I want to be able to generate and view the PDF file when the user clicks a button. Any help would be greatly appreciated. Andrew E. Kirin [EMAIL PROTECTED] (724) 567-2141 (voice) (724) 567-2109 (fax)
RE: Problem with PDF generation
Hi, I'm getting following exception while generating a pdf using FOP. file:///D:/tempReports/testReport.xml; Line 2; Column 24; org.apache.fop.apps.FOPException at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109) at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) at com.cpb.util.PDFWriter.main(PDFWriter.java:43) - java.lang.reflect.InvocationTargetException: org.apache.fop.apps.FOPException: stylesheet requires a ttribute: 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 com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) at com.cpb.util.PDFWriter.main(PDFWriter.java:43) - - 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 com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) at com.cpb.util.PDFWriter.main(PDFWriter.java:43) - javax.xml.transform.TransformerConfigurationException: stylesheet requires attribute: version at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav a:815) at org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter(TransformerFactoryImpl.jav a:486) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:84) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102) at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) at com.cpb.util.PDFWriter.main(PDFWriter.java:43) - javax.xml.transform.TransformerException: stylesheet requires attribute: version at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav a:813) at org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter(TransformerFactoryImpl.jav a:486) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:84) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102) at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) at com.cpb.util.PDFWriter.main(PDFWriter.java:43) - javax.xml.transform.TransformerException: stylesheet requires attribute: version at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:866) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementPr ocessor.java:389) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementPr ocessor.java:300) at org.apache.xalan.processor.ProcessorLRE.startElement(ProcessorLRE.java:184) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:632) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1170) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScan ner.java:994) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav a:795) at org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter(TransformerFactoryImpl.jav a:486) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:84) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102) at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) at com.cpb.util.PDFWriter.main(PDFWriter.java:43) - ; SystemID: file:///D:/tempReports/testReport.xml; Line#: 2; Column#: 24 ; SystemID: file:///D:/tempReports/testReport.xml; Line#: 2; Column#: 24 javax.xml.transform.TransformerException: stylesheet requires attribute: version at org.ap
RE: Problem with PDF generation
I'm no java guru but it looks like your XSLT stylesheet is not correct. Does it contain the following line? http://www.w3.org/1999/XSL/Transform"; version="1.0"> Michiel $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:07 $ To: [EMAIL PROTECTED] $ Cc: Katiyar, Bhawana $ Subject: RE: Problem with PDF generation $ $ $ $ $ Hi, $ I'm getting following exception while generating a pdf using FOP. $ $ ** $ ** $ file:///D:/tempReports/testReport.xml; Line 2; Column 24; $ org.apache.fop.apps.FOPException $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:109) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ $ - $ $ java.lang.reflect.InvocationTargetException: $ org.apache.fop.apps.FOPException: stylesheet requires a $ ttribute: version $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:103) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ $ - $ $ $ - $ $ org.apache.fop.apps.FOPException: stylesheet requires $ attribute: version $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:103) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ $ - $ $ javax.xml.transform.TransformerConfigurationException: $ stylesheet requires attribute: version $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newTemplates $ (TransformerFactoryImpl.jav $ a:815) $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter $ (TransformerFactoryImpl.jav $ a:486) $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:84) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ - $ javax.xml.transform.TransformerException: stylesheet requires $ attribute: version $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newTemplates $ (TransformerFactoryImpl.jav $ a:813) $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter $ (TransformerFactoryImpl.jav $ a:486) $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:84) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ - $ javax.xml.transform.TransformerException: stylesheet requires $ attribute: version $ at $ org.apache.xalan.processor.StylesheetHandler.error(StylesheetH $ andler.java:866) $ at $ org.apache.xalan.processor.XSLTElementProcessor.setPropertiesF $ romAttributes(XSLTElementPr $ ocessor.java:389) $ at $ org.apache.xalan.processor.XSLTElementProcessor.setPropertiesF $ romAttributes(XSLTElementPr $ ocessor.java:300) $ at $ org.apache.xalan.processor.ProcessorLRE.startElement(Processor $ LRE.java:184) $ at $ org.apache.xalan.processor.StylesheetHandler.startElement(Styl $ esheetHandler.java:632) $ at $ org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) $ at $ org.apache.xerces.validators.common.XMLValidator.callStartElem $ ent(XMLValidator.java:1170) $ $ at $ org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch $ er.dispatch(XMLDocumentScan $ ner.java:994) $ at $ org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo $ cumentScanner.java:381) $ at $ org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newTemplates $ (TransformerFactoryImpl.jav $ a:795) $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter $ (TransformerF
Re: FOP outline extension specification
Have a look at: docs/examples/fo/pdfoutline.fo On Thu, 2002-06-06 at 11:06, Florence Deforge wrote: > Is there a resource on the web that lists all the elements of the FOP > outline extension ? > I would like to make treeview-like outline : > > 1. Bookmark 1 > 1.1 Bookmark 1.1 > 1.2 Bookmark 1.2 > 2. Bookmark 2 > etc ... > > I can't find a way to force the indentation. > > Thanks > > Flo
RE: Problem with PDF generation
Yes... the xsl has following lines : http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format";> -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 7:38 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation I'm no java guru but it looks like your XSLT stylesheet is not correct. Does it contain the following line? http://www.w3.org/1999/XSL/Transform"; version="1.0"> Michiel $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:07 $ To: [EMAIL PROTECTED] $ Cc: Katiyar, Bhawana $ Subject: RE: Problem with PDF generation $ $ $ $ $ Hi, $ I'm getting following exception while generating a pdf using FOP. $ $ ** $ ** $ file:///D:/tempReports/testReport.xml; Line 2; Column 24; $ org.apache.fop.apps.FOPException $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:109) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ $ - $ $ java.lang.reflect.InvocationTargetException: $ org.apache.fop.apps.FOPException: stylesheet requires a $ ttribute: version $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:103) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ $ - $ $ $ - $ $ org.apache.fop.apps.FOPException: stylesheet requires $ attribute: version $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:103) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ $ - $ $ javax.xml.transform.TransformerConfigurationException: $ stylesheet requires attribute: version $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newTemplates $ (TransformerFactoryImpl.jav $ a:815) $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter $ (TransformerFactoryImpl.jav $ a:486) $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:84) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ - $ javax.xml.transform.TransformerException: stylesheet requires $ attribute: version $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newTemplates $ (TransformerFactoryImpl.jav $ a:813) $ at $ org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter $ (TransformerFactoryImpl.jav $ a:486) $ at $ org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHan $ dler.java:84) $ at java.lang.reflect.Method.invoke(Native Method) $ at $ org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandle $ r.java:102) $ at com.cpb.util.PDFWriter.renderXML(PDFWriter.java:89) $ at com.cpb.util.PDFWriter.Print(PDFWriter.java:70) $ at com.cpb.util.PDFWriter.main(PDFWriter.java:43) $ - $ javax.xml.transform.TransformerException: stylesheet requires $ attribute: version $ at $ org.apache.xalan.processor.StylesheetHandler.error(StylesheetH $ andler.java:866) $ at $ org.apache.xalan.processor.XSLTElementProcessor.setPropertiesF $ romAttributes(XSLTElementPr $ ocessor.java:389) $ at $ org.apache.xalan.processor.XSLTElementProcessor.setPropertiesF $ romAttributes(XSLTElementPr $ ocessor.java:300) $ at $ org.apache.xalan.processor.ProcessorLRE.startElement(Processor $ LRE.java:184) $ at $ org.apache.xalan.processor.StylesheetHandler.startElement(Styl $ esheetHandler.java:632) $ at $ org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) $ at $ org.apache.xerces.validators.common.XMLValidator.callStartElem $ ent(XMLValidator.java:1170) $ $ at $ org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch $ er.dispatch(XMLDocumentScan $ ner.java:994) $ at $ org.apache.xerces.framework.XMLDocumentScanner.parseSom
RE: Problem with PDF generation
ehm, not sure if this helps but have you tried a different order of the attributes? http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> I know it looks the same (except for the order) but perhaps fop needs the attributes ordered like this? Cheers, Michiel $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:19 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Yes... the xsl has following lines : $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:38 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ not correct. $ Does it contain the following line? $ $ http://www.w3.org/1999/XSL/Transform"; $ version="1.0"> $ $ $
RE: Problem with PDF generation
Tried that... Still gives the same exception -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 7:52 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation ehm, not sure if this helps but have you tried a different order of the attributes? http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> I know it looks the same (except for the order) but perhaps fop needs the attributes ordered like this? Cheers, Michiel $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:19 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Yes... the xsl has following lines : $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:38 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ not correct. $ Does it contain the following line? $ $ http://www.w3.org/1999/XSL/Transform"; $ version="1.0"> $ $ $
RE: Problem with PDF generation
Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $
RE: Problem with PDF generation
Pls find the attached files: -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $ testReport.xsl Description: testReport.xsl Dear MARSHAL, EUSTACE D 9376 CAPABILITIES STREET, COLUMBIA, BLOOMSBURY, Miami-56002881, UNITED STATES: Thank you for informing us of the new address 2381 UNJUST DRIVE, KENT, RIDGEFIELD, California-56005653, UNITED STATES for the account(s) listed below. For your protection, it is our policy to verify such requests by sending a letter to verify such requests by sending a letter of confirmation by postal mail or facsimile to your current postal address or fax number based on your contact information in our files. Please review the following information: To: [List of accounts, titles, addresses, etc. for client] Re: 2381 UNJUST DRIVE, KENT, RIDGEFIELD, California-56005653, UNITED STATES Updated Address for Selected Accounts: The above information is not correct. MARSHAL, EUSTACE D The above information is correct. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:com.cpb.dvo.member.MemberAccountDetailsSL"> Y 6363 PRECINCT STREET, ORLEANS, HILLERMAN, Mississipi-56001990, UNITED STATES ACTON, JENSINE A; FROMM, VICTORIA A; First USA Bank; MARSHAL, EUSTACE D 103050 56345776999 104022 7511 105004 04/15/1990 00 NY VICTORIA A FROMM; FIRST USA BANK ; JENSINE A ACTON; EUSTACE D MARSHAL ESA 001128605557 LA 06/05/2002 16:12:00 101094 CCD 227-03-0984 CREDIT CARDS c/o Mr James 628, 7783 STARVE DRIVE, ORLEANS, SARASOTA, Texas-5600901, UNITED STATES 00 06/05/2002 http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:com.cpb.dvo.member.MemberAccountDetailsSL"> N 11873 REINSERTS STREET, ALLEGHENY, GRANTS VILLAGE, Virginia-56005950, UNITED STATES GANT, MADDOX G; MARSHAL, EUSTACE D 103022 09434555999 104062 3140 105009
RE: Problem with PDF generation
It just work fine to me. I attach the resultant pdf. Ramon -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:35 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Pls find the attached files: -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $ testReport.pdf Description: testReport.pdf
RE: Problem with PDF generation
Hi Ramon, Could you tell me what versions of FOP and other things you used... and most importantly... did you run them from command line...? It works for me if i run them from command line but it doesn't work if i try to do so through a java program -Original Message- From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:10 PM To: [EMAIL PROTECTED] Subject: RE: Problem with PDF generation It just work fine to me. I attach the resultant pdf. Ramon -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:35 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Pls find the attached files: -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $
RE: Problem with PDF generation
The version of fop i'm using is 0.20.3 but i have obteined it from the command line. I'm going to try to generate the same result from a servlet. Nowadys I think your problem could be because of the libraries you're using. If you look to the FopServlet.java, you'll see which exactly ones you need to make it work. Ramon. -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:53 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Hi Ramon, Could you tell me what versions of FOP and other things you used... and most importantly... did you run them from command line...? It works for me if i run them from command line but it doesn't work if i try to do so through a java program -Original Message- From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:10 PM To: [EMAIL PROTECTED] Subject: RE: Problem with PDF generation It just work fine to me. I attach the resultant pdf. Ramon -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:35 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Pls find the attached files: -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $
Re: Problem with PDF generation
chandrakant_binwani wrote: Pls find the attached files: Those works like a charm in (msxml3, saxon, xalan) + fop. Show us your java code. -- Oleg Tkachenko Multiconn International, Israel
RE: Problem with PDF generation
Hi. I have exactly the same problem -Message d'origine- De: Michiel Verhoef [mailto:[EMAIL PROTECTED] Date: jeudi 6 juin 2002 16:32 À: '[EMAIL PROTECTED]' Objet: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $
RE: Problem with PDF generation
I'm using the libraries mentioned in the FopServlet.java The FOP version is 0.20.3 -Original Message- From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:29 PM To: [EMAIL PROTECTED] Subject: RE: Problem with PDF generation The version of fop i'm using is 0.20.3 but i have obteined it from the command line. I'm going to try to generate the same result from a servlet. Nowadys I think your problem could be because of the libraries you're using. If you look to the FopServlet.java, you'll see which exactly ones you need to make it work. Ramon. -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:53 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Hi Ramon, Could you tell me what versions of FOP and other things you used... and most importantly... did you run them from command line...? It works for me if i run them from command line but it doesn't work if i try to do so through a java program -Original Message- From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:10 PM To: [EMAIL PROTECTED] Subject: RE: Problem with PDF generation It just work fine to me. I attach the resultant pdf. Ramon -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:35 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Pls find the attached files: -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $
RE: Problem with PDF generation
I've just tried with the servlet and it works fine. Do what Oleg says. Send us your java code (if you can). Ramon. -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:53 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Hi Ramon, Could you tell me what versions of FOP and other things you used... and most importantly... did you run them from command line...? It works for me if i run them from command line but it doesn't work if i try to do so through a java program -Original Message- From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:10 PM To: [EMAIL PROTECTED] Subject: RE: Problem with PDF generation It just work fine to me. I attach the resultant pdf. Ramon -Mensaje original- De: chandrakant_binwani [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de junio de 2002 16:35 Para: [EMAIL PROTECTED] Asunto: RE: Problem with PDF generation Pls find the attached files: -Original Message- From: Michiel Verhoef [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 8:02 PM To: '[EMAIL PROTECTED]' Subject: RE: Problem with PDF generation Just to see if I can get a decent fo file: could you send us your XSLT and XML files so we can try the conversion? $ -Original Message- $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ Sent: donderdag 6 juni 2002 16:32 $ To: [EMAIL PROTECTED] $ Subject: RE: Problem with PDF generation $ $ $ $ Tried that... $ Still gives the same exception $ $ -Original Message- $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ Sent: Thursday, June 06, 2002 7:52 PM $ To: '[EMAIL PROTECTED]' $ Subject: RE: Problem with PDF generation $ $ $ ehm, not sure if this helps but have you tried a different $ order of the $ attributes? $ $ $ http://www.w3.org/1999/XSL/Transform"; $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ I know it looks the same (except for the order) but perhaps $ fop needs the $ attributes $ ordered like this? $ $ Cheers, $ $ Michiel $ $ $ $ $ -Original Message- $ $ From: chandrakant_binwani [mailto:[EMAIL PROTECTED] $ $ Sent: donderdag 6 juni 2002 16:19 $ $ To: [EMAIL PROTECTED] $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ $ $ Yes... the xsl has following lines : $ $ $ $ http://www.w3.org/1999/XSL/Transform"; version="1.0" $ $ xmlns:fo="http://www.w3.org/1999/XSL/Format";> $ $ $ $ $ $ -Original Message- $ $ From: Michiel Verhoef [mailto:[EMAIL PROTECTED] $ $ Sent: Thursday, June 06, 2002 7:38 PM $ $ To: '[EMAIL PROTECTED]' $ $ Subject: RE: Problem with PDF generation $ $ $ $ $ $ I'm no java guru but it looks like your XSLT stylesheet is $ $ not correct. $ $ Does it contain the following line? $ $ $ $ http://www.w3.org/1999/XSL/Transform"; $ $ version="1.0"> $ $ $ $ $ $ $
RE: Problem with PDF generation
Here how i'm trying to implement PDF generation: public static void Print() throws Exception { try { String xslParam = "D:\\tempReports\\testReport.xml"; String xmlParam = "D:\\tempReports\\testReport.xsl"; String pdffile = "D:\\tempReports\\testReport.pdf"; if ((xmlParam != null) && (xslParam != null)) { XSLTInputHandler input = new XSLTInputHandler(new File(xmlParam), new File(xslParam)); renderXML(input, pdffile); } else { throw new Exception("Failed to create PDF..."); } } catch (Exception e) { throw(e); } } public static void renderXML(XSLTInputHandler input, String pdffile) throws Exception { try { XMLReader parser = (XMLReader)input.getParser(); InputSource inputSource =(InputSource)input.getInputSource(); Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(new FileOutputStream(pdffile)); driver.render(parser, inputSource); } catch (Exception ex) { throw(ex); } } } -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 9:35 PM To: [EMAIL PROTECTED] Subject: Re: Problem with PDF generation chandrakant_binwani wrote: > Pls find the attached files: Those works like a charm in (msxml3, saxon, xalan) + fop. Show us your java code. -- Oleg Tkachenko Multiconn International, Israel
Re: Problem with PDF generation
chandrakant_binwani wrote: Here how i'm trying to implement PDF generation: String xslParam = "D:\\tempReports\\testReport.xml"; String xmlParam = "D:\\tempReports\\testReport.xsl"; Aha, got it! CAn you see - your xslParam is xml file url and xmlParam is xsl url, that's why you got an exception - xalan has considered xml as xsl and complined about lack of xsl:version (any xml file could be valid xsl stylesheet if it has xsl:version attribute at the roor element). Well, it should be String xmlParam = "D:\\tempReports\\testReport.xml"; String xslParam = "D:\\tempReports\\testReport.xsl"; -- Oleg Tkachenko Multiconn International, Israel
RE: Problem with PDF generation
Thanks a lot Oleg... It finally worked Very silly mistake on my part -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 10:37 PM To: [EMAIL PROTECTED] Subject: Re: Problem with PDF generation chandrakant_binwani wrote: > > Here how i'm trying to implement PDF generation: > > String xslParam = "D:\\tempReports\\testReport.xml"; > String xmlParam = "D:\\tempReports\\testReport.xsl"; Aha, got it! CAn you see - your xslParam is xml file url and xmlParam is xsl url, that's why you got an exception - xalan has considered xml as xsl and complined about lack of xsl:version (any xml file could be valid xsl stylesheet if it has xsl:version attribute at the roor element). Well, it should be String xmlParam = "D:\\tempReports\\testReport.xml"; String xslParam = "D:\\tempReports\\testReport.xsl"; -- Oleg Tkachenko Multiconn International, Israel
Performance Guidance
I am using FOP to take a single page of XSL:FO content and convert to PDF. I have embedded FOP in a servlet. When I have one user requesting a page it takes about 6 or 7 seconds to get the page formatted as PDF. It seems like each additional simultaneous request pushes the response time by 6 or 7 seconds. So, if 10 users request pages at about the same time, the 10th user gets his page back in about a minute--and this is only one page. Is this the performance I should expect? What the ideal way to handle the rendering process? Should I create a Rendering object that had a rendering method or should I simply have a class with one static method that renders? Any guidance on how to embed FOP and get better response time is appreciated. Mike Zahigian, Sr. Programmer/Systems Analyst Amgen Business Information Systems (805) 447-2819 mailto:[EMAIL PROTECTED]
RE: Problem with PDF generation
But it was helpful to us newbies who will probably make similar errors. The more examples I see, the better. Just wish there was someone out there who could take one of my sample reports that I need to generate, and create the whole thing from start to finish. I could use that as a model for the others that I have to create. -Original Message- From: chandrakant_binwani [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 9:35 AM To: [EMAIL PROTECTED] Subject: RE: Problem with PDF generation Thanks a lot Oleg... It finally worked Very silly mistake on my part -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 10:37 PM To: [EMAIL PROTECTED] Subject: Re: Problem with PDF generation chandrakant_binwani wrote: > > Here how i'm trying to implement PDF generation: > > String xslParam = "D:\\tempReports\\testReport.xml"; > String xmlParam = "D:\\tempReports\\testReport.xsl"; Aha, got it! CAn you see - your xslParam is xml file url and xmlParam is xsl url, that's why you got an exception - xalan has considered xml as xsl and complined about lack of xsl:version (any xml file could be valid xsl stylesheet if it has xsl:version attribute at the roor element). Well, it should be String xmlParam = "D:\\tempReports\\testReport.xml"; String xslParam = "D:\\tempReports\\testReport.xsl"; -- Oleg Tkachenko Multiconn International, Israel
Re: wrong namespace??
Well.. I´ve just got it Working! It all had to do with a line I commented in the DocumentBuilderFactory... DocumentBuilderFactory dFactory = DocumentBuilderFactory.newInstance() dFactory.setNamespaceAware( true ); uncommenting the setNamespaceAware line did the trick! I´m still not sure why.. but i´ll try to do a little more research and i´ll keep the list updated!!! Thanks J.Pietschman!! A LOT - Original Message - From: "J.Pietschmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 9:13 PM Subject: Re: wrong namespace?? > Esteban Gonzalez wrote: > > This is taking forevr! > > So I created PDFGenerator.java ( just for testing... attached ) and did the > > transformation as J.Pietschmann pointed out... > > Interesting, the test program fails if Xalan 2.0.0 is in the > classpath but works if Saxon 6.5.4 is substituted for Xalan. > Seems like you have hit a Xalan bug. The 2.0.0 version > is quite a bit outdated meanwhile, download the latest > Xalan version from http://xml.apache.org/dist and see > whether the problem goes away if you use it. > > J.Pietschmann >
Re: Use a relative path
Florence Deforge wrote: I'm not sure it makes the difference but I always precede the relative path with the "file:" string like this : That's a *bad* idea, actually violating URL syntax. See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102027988321347&w=2 for some explanations. J.Pietschmann
Null values
I´m getting this error... java.lang.IllegalArgumentException: The input node can not be null for a DOMSource for newTemplates! It´s probably because the xml has tags like this The thing is... what should i do?... erase those nodes?.. set a blank space to it? if i erase the nodes in the xml.. will the xsl still work if those nodes are missing? Best Regards, Esteban
Re: Use a relative path
Hahn Kurt (CHA) wrote: I need to add a graphics file, originally placed in the same directory where my sitemap is located. ¨There's no problem if I use an absolute path, the file is displayed. If I use a relative path, nothing. The file is very small, so I even copied in other subdirectories, but still nothing. How can I do that? working: not working: The src attribute actually takes an URL, not a path, though the difference is often muddled with the active help of the software. A relative URL is resolved agains a base. If you use FOP from the command line, the default base is the directory where the FO file or the source XML file resides. This can, in theory, be overridden (does not work yet, I think). If you use FOP in a servlet or embedded in an application, the base must be set explicitely http://marc.theaimsgroup.com/?l=fop-dev&m=101354604124258&w=2 If there is no baseDir set, I believe FOP will search from the current working directory of the process it runs in. J.Pietschmann
Re: Problem with PDF generation
Robert Morse wrote: Just wish there was someone out there who could take one of my sample reports that I need to generate, and create the whole thing from start to finish. Just ask...but expect to get hourly rates presented. J.Pietschmann
Re: Table alignment
Ismaeil, Sameh Z wrote: I want to align a table, whose width is smaller than the body width, to be in the center of the page body I think I read a solution before on this list, suggesting to put the table inside the cell of another one-cell table, but I don't know which attribute to use and on which element. Use display-align="center" BTW I'm stuck to version 0.17.0 of FOP Consider upgrading. There has been quite a few bugs in table layout corrected. J.Pietschmann
Re: Performance Guidance
Zahigian, Mike wrote: I am using FOP to take a single page of XSL:FO content and convert to PDF. I have embedded FOP in a servlet. When I have one user requesting a page it takes about 6 or 7 seconds to get the page formatted as PDF. It seems like each additional simultaneous request pushes the response time by 6 or 7 seconds. So, if 10 users request pages at about the same time, the 10th user gets his page back in about a minute--and this is only one page. Is this the performance I should expect? What the ideal way to handle the rendering process? Should I create a Rendering object that had a rendering method or should I simply have a class with one static method that renders? Any guidance on how to embed FOP and get better response time is appreciated. The design of the embedding hardly matters for performance. The complexity of the layout usually matters. How much time does FOP need to render your FO from the command line? Does the time include the XSL transformation or is it FO rendering only? Use the -d switch to get timings. Do you use JDK1.3? Is HotSpot enabled? FOP is much slower on JDK 1.2 and earlier. Try to isolate the steps. Apply a profiler. You might find bottlenecks where you'd expect them last. In your case, I strongly suspect the bottleneck is data retrieval, not FO rendering, 7 seconds for a page sounds too much. You ought to get 1-2 pages per second on moderatly dated machines. J.Pietschmann
Re: Null values
Esteban Gonzalez wrote: I´m getting this error... java.lang.IllegalArgumentException: The input node can not be null for a DOMSource for newTemplates! It´s probably because the xml has tags like this Definitely not. It seems you passed a null value as a document node to the DOMSource constructor, in other words, you screwed up the DOM document creation. J.Pietschmann
RE: Performance Guidance
I am curently working on a system to only allow one FOP processing thread per appserver instance. You can search my earlier posts for some benchmarking results. Matt Savino Senior Systems Analyst Quest Diagnostics Inc. 33608 Ortega Hwy Building C San Juan Capistrano, CA 92690 949.728.4832 cel - 310-344-0889 pg - 949-452-4566 > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 1:47 PM > To: [EMAIL PROTECTED] > Subject: Re: Performance Guidance > > > Zahigian, Mike wrote: > > I am using FOP to take a single page of XSL:FO content and > convert to PDF. > > I have embedded FOP in a servlet. When I have one user > requesting a page it > > takes about 6 or 7 seconds to get the page formatted as > PDF. It seems like > > each additional simultaneous request pushes the response > time by 6 or 7 > > seconds. So, if 10 users request pages at about the same > time, the 10th > > user gets his page back in about a minute--and this is only > one page. > > > > Is this the performance I should expect? What the ideal > way to handle the > > rendering process? Should I create a Rendering object that > had a rendering > > method or should I simply have a class with one static > method that renders? > > Any guidance on how to embed FOP and get better response time is > > appreciated. > > The design of the embedding hardly matters for performance. > The complexity of the layout usually matters. > > How much time does FOP need to render your FO from the command > line? Does the time include the XSL transformation or is it FO > rendering only? Use the -d switch to get timings. > > Do you use JDK1.3? Is HotSpot enabled? FOP is much slower on > JDK 1.2 and earlier. > > Try to isolate the steps. Apply a profiler. You might find > bottlenecks where you'd expect them last. > In your case, I strongly suspect the bottleneck is data retrieval, > not FO rendering, 7 seconds for a page sounds too much. You ought > to get 1-2 pages per second on moderatly dated machines. > > J.Pietschmann > >
RE: Performance Guidance
Matt, I'm not sure what you mean by a "one FOP processing thread per appserver instance"? J., I am getting data out of some javabeans in the form of xml, then this xml is transformed using a stylesheet, then another transformation takes place to create the xsl:fo and then FOP takes over. I'll go ahead and try and profile--you think the bottleneck might be in the transformations and not in the final rendering? Do you have a profiler you can recommend? Thanks very much for the feedback. Mike Z. -Original Message- From: Savino, Matt C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 1:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Performance Guidance I am curently working on a system to only allow one FOP processing thread per appserver instance. You can search my earlier posts for some benchmarking results. Matt Savino Senior Systems Analyst Quest Diagnostics Inc. 33608 Ortega Hwy Building C San Juan Capistrano, CA 92690 949.728.4832 cel - 310-344-0889 pg - 949-452-4566 > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 1:47 PM > To: [EMAIL PROTECTED] > Subject: Re: Performance Guidance > > > Zahigian, Mike wrote: > > I am using FOP to take a single page of XSL:FO content and > convert to PDF. > > I have embedded FOP in a servlet. When I have one user > requesting a page it > > takes about 6 or 7 seconds to get the page formatted as > PDF. It seems like > > each additional simultaneous request pushes the response > time by 6 or 7 > > seconds. So, if 10 users request pages at about the same > time, the 10th > > user gets his page back in about a minute--and this is only > one page. > > > > Is this the performance I should expect? What the ideal > way to handle the > > rendering process? Should I create a Rendering object that > had a rendering > > method or should I simply have a class with one static > method that renders? > > Any guidance on how to embed FOP and get better response time is > > appreciated. > > The design of the embedding hardly matters for performance. > The complexity of the layout usually matters. > > How much time does FOP need to render your FO from the command > line? Does the time include the XSL transformation or is it FO > rendering only? Use the -d switch to get timings. > > Do you use JDK1.3? Is HotSpot enabled? FOP is much slower on > JDK 1.2 and earlier. > > Try to isolate the steps. Apply a profiler. You might find > bottlenecks where you'd expect them last. > In your case, I strongly suspect the bottleneck is data retrieval, > not FO rendering, 7 seconds for a page sounds too much. You ought > to get 1-2 pages per second on moderatly dated machines. > > J.Pietschmann > >
RE: Performance Guidance
I mean every other thread has to wait. I have the FOP processor wrapped in a stateless session bean and I limit the number of instances of that bean to one. This is because of the serious performance drop-off we see when FOP is run more than once concurrently. I'm still working out some of the details. Matt Savino > -Original Message- > From: Zahigian, Mike [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 2:13 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Performance Guidance > > > Matt, I'm not sure what you mean by a "one FOP processing thread per > appserver instance"? > > J., I am getting data out of some javabeans in the form of > xml, then this > xml is transformed using a stylesheet, then another > transformation takes > place to create the xsl:fo and then FOP takes over. I'll go > ahead and try > and profile--you think the bottleneck might be in the > transformations and > not in the final rendering? Do you have a profiler you can recommend? > > Thanks very much for the feedback. > > Mike Z. > > -Original Message- > From: Savino, Matt C [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 1:51 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Performance Guidance > > > I am curently working on a system to only allow one FOP > processing thread > per appserver instance. You can search my earlier posts for some > benchmarking results. > > > Matt Savino > > Senior Systems Analyst > Quest Diagnostics Inc. > 33608 Ortega Hwy > Building C > San Juan Capistrano, CA 92690 > 949.728.4832 > cel - 310-344-0889 > pg - 949-452-4566 > > > > > -Original Message- > > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 06, 2002 1:47 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Performance Guidance > > > > > > Zahigian, Mike wrote: > > > I am using FOP to take a single page of XSL:FO content and > > convert to PDF. > > > I have embedded FOP in a servlet. When I have one user > > requesting a page it > > > takes about 6 or 7 seconds to get the page formatted as > > PDF. It seems like > > > each additional simultaneous request pushes the response > > time by 6 or 7 > > > seconds. So, if 10 users request pages at about the same > > time, the 10th > > > user gets his page back in about a minute--and this is only > > one page. > > > > > > Is this the performance I should expect? What the ideal > > way to handle the > > > rendering process? Should I create a Rendering object that > > had a rendering > > > method or should I simply have a class with one static > > method that renders? > > > Any guidance on how to embed FOP and get better response time is > > > appreciated. > > > > The design of the embedding hardly matters for performance. > > The complexity of the layout usually matters. > > > > How much time does FOP need to render your FO from the command > > line? Does the time include the XSL transformation or is it FO > > rendering only? Use the -d switch to get timings. > > > > Do you use JDK1.3? Is HotSpot enabled? FOP is much slower on > > JDK 1.2 and earlier. > > > > Try to isolate the steps. Apply a profiler. You might find > > bottlenecks where you'd expect them last. > > In your case, I strongly suspect the bottleneck is data retrieval, > > not FO rendering, 7 seconds for a page sounds too much. You ought > > to get 1-2 pages per second on moderatly dated machines. > > > > J.Pietschmann > > > > >
RE: Performance Guidance
I get it. Do you know if I can similarly limit the number of instances of a servlet to one? Mike Z. -Original Message- From: Savino, Matt C [mailto:[EMAIL PROTECTED] Sent: Thursday, June 06, 2002 2:17 PM To: '[EMAIL PROTECTED]' Subject: RE: Performance Guidance I mean every other thread has to wait. I have the FOP processor wrapped in a stateless session bean and I limit the number of instances of that bean to one. This is because of the serious performance drop-off we see when FOP is run more than once concurrently. I'm still working out some of the details. Matt Savino > -Original Message- > From: Zahigian, Mike [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 2:13 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Performance Guidance > > > Matt, I'm not sure what you mean by a "one FOP processing thread per > appserver instance"? > > J., I am getting data out of some javabeans in the form of > xml, then this > xml is transformed using a stylesheet, then another > transformation takes > place to create the xsl:fo and then FOP takes over. I'll go > ahead and try > and profile--you think the bottleneck might be in the > transformations and > not in the final rendering? Do you have a profiler you can recommend? > > Thanks very much for the feedback. > > Mike Z. > > -Original Message- > From: Savino, Matt C [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 1:51 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Performance Guidance > > > I am curently working on a system to only allow one FOP > processing thread > per appserver instance. You can search my earlier posts for some > benchmarking results. > > > Matt Savino > > Senior Systems Analyst > Quest Diagnostics Inc. > 33608 Ortega Hwy > Building C > San Juan Capistrano, CA 92690 > 949.728.4832 > cel - 310-344-0889 > pg - 949-452-4566 > > > > > -Original Message- > > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 06, 2002 1:47 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Performance Guidance > > > > > > Zahigian, Mike wrote: > > > I am using FOP to take a single page of XSL:FO content and > > convert to PDF. > > > I have embedded FOP in a servlet. When I have one user > > requesting a page it > > > takes about 6 or 7 seconds to get the page formatted as > > PDF. It seems like > > > each additional simultaneous request pushes the response > > time by 6 or 7 > > > seconds. So, if 10 users request pages at about the same > > time, the 10th > > > user gets his page back in about a minute--and this is only > > one page. > > > > > > Is this the performance I should expect? What the ideal > > way to handle the > > > rendering process? Should I create a Rendering object that > > had a rendering > > > method or should I simply have a class with one static > > method that renders? > > > Any guidance on how to embed FOP and get better response time is > > > appreciated. > > > > The design of the embedding hardly matters for performance. > > The complexity of the layout usually matters. > > > > How much time does FOP need to render your FO from the command > > line? Does the time include the XSL transformation or is it FO > > rendering only? Use the -d switch to get timings. > > > > Do you use JDK1.3? Is HotSpot enabled? FOP is much slower on > > JDK 1.2 and earlier. > > > > Try to isolate the steps. Apply a profiler. You might find > > bottlenecks where you'd expect them last. > > In your case, I strongly suspect the bottleneck is data retrieval, > > not FO rendering, 7 seconds for a page sounds too much. You ought > > to get 1-2 pages per second on moderatly dated machines. > > > > J.Pietschmann > > > > >
RE: Performance Guidance
FYI, here is the processing we do to generate a report: 1) Stored Proc returns 1 or more (up to 7 for a lab report) Result Sets which for the most part represent the different levels of data (report, study, doctor, patient, visit, test, analyte, etc.) 2) These result sets are converted to XML strings via built-in Oracle classes 3) The app combines the XML strings into one XML DOM object, which is the data portion of the report 4) For PDF output, the XML DOM is transformed to xsl:fo (DOM) via xslt 5) The xsl:fo DOM is transformed to PDF via FOP As far as performance, for large reports step (5) becomes a memory/processing issue long before the DOM sizes or XSLT transformation become a problem. Step (2) seems to be the next biggest resource consumer. I know there are steps I can take to minimize the memory needs of FOP. But as far as concurrent processing, which I assume is a CPU usage issue, I'm not sure. Matt Savino > -Original Message- > From: Savino, Matt C [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 06, 2002 2:17 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Performance Guidance > > > I mean every other thread has to wait. I have the FOP > processor wrapped in a > stateless session bean and I limit the number of instances of > that bean to > one. This is because of the serious performance drop-off we > see when FOP is > run more than once concurrently. I'm still working out some > of the details. > > > Matt Savino > > > > > > -Original Message- > > From: Zahigian, Mike [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 06, 2002 2:13 PM > > To: '[EMAIL PROTECTED]' > > Subject: RE: Performance Guidance > > > > > > Matt, I'm not sure what you mean by a "one FOP processing thread per > > appserver instance"? > > > > J., I am getting data out of some javabeans in the form of > > xml, then this > > xml is transformed using a stylesheet, then another > > transformation takes > > place to create the xsl:fo and then FOP takes over. I'll go > > ahead and try > > and profile--you think the bottleneck might be in the > > transformations and > > not in the final rendering? Do you have a profiler you can > recommend? > > > > Thanks very much for the feedback. > > > > Mike Z. > > > > -Original Message- > > From: Savino, Matt C [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 06, 2002 1:51 PM > > To: '[EMAIL PROTECTED]' > > Subject: RE: Performance Guidance > > > > > > I am curently working on a system to only allow one FOP > > processing thread > > per appserver instance. You can search my earlier posts for some > > benchmarking results. > > > > > > Matt Savino > > > > Senior Systems Analyst > > Quest Diagnostics Inc. > > 33608 Ortega Hwy > > Building C > > San Juan Capistrano, CA 92690 > > 949.728.4832 > > cel - 310-344-0889 > > pg - 949-452-4566 > > > > > > > > > -Original Message- > > > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, June 06, 2002 1:47 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Performance Guidance > > > > > > > > > Zahigian, Mike wrote: > > > > I am using FOP to take a single page of XSL:FO content and > > > convert to PDF. > > > > I have embedded FOP in a servlet. When I have one user > > > requesting a page it > > > > takes about 6 or 7 seconds to get the page formatted as > > > PDF. It seems like > > > > each additional simultaneous request pushes the response > > > time by 6 or 7 > > > > seconds. So, if 10 users request pages at about the same > > > time, the 10th > > > > user gets his page back in about a minute--and this is only > > > one page. > > > > > > > > Is this the performance I should expect? What the ideal > > > way to handle the > > > > rendering process? Should I create a Rendering object that > > > had a rendering > > > > method or should I simply have a class with one static > > > method that renders? > > > > Any guidance on how to embed FOP and get better response time is > > > > appreciated. > > > > > > The design of the embedding hardly matters for performance. > > > The complexity of the layout usually matters. > > > > > > How much time does FOP need to render your FO from the command > > > line? Does the time include the XSL transformation or is it FO > > > rendering only? Use the -d switch to get timings. > > > > > > Do you use JDK1.3? Is HotSpot enabled? FOP is much slower on > > > JDK 1.2 and earlier. > > > > > > Try to isolate the steps. Apply a profiler. You might find > > > bottlenecks where you'd expect them last. > > > In your case, I strongly suspect the bottleneck is data retrieval, > > > not FO rendering, 7 seconds for a page sounds too much. You ought > > > to get 1-2 pages per second on moderatly dated machines. > > > > > > J.Pietschmann > > > > > > > > > >
Re: Performance Guidance
Zahigian, Mike wrote: J., I am getting data out of some javabeans in the form of xml, then this xml is transformed using a stylesheet, then another transformation takes place to create the xsl:fo and then FOP takes over. I'll go ahead and try and profile--you think the bottleneck might be in the transformations and not in the final rendering? Not the transformation itself but the steps before this. No offense meant, but most people start with the most inefficient ways to generate XML, usually doing a lookup in a remote database (which is slow, but hard to avoid), building an XML string or a DOM tree (which is slow, memory consuming and avoidable) and then feed it to the XSLT processor. > Do you have a profiler you can recommend? No. J.Pietschmann