Last page
Title: Last page Hi! I want to use the page-position=last in fo:conditional-page-master-reference but it is not implemented yet. Is there a workaround? Here is my problem: Suppose I have a document of 6 pages. The last page (page 6) is blank because I have to keep the document even. On the last not-blank page (page 5) I need to write 5 of 6 in the footer (because the document end with a blank page). Because I can't use last I thinking about a way to know the current page number and use a xsl:choose in the footer to know if I have to write x of n or just x but I still can't find a way to get the current page number. I use fop0.20.5rc3a Thanks Sébastien Forest Spécialiste, Applications logicielles / Software Application Specialist Publications techniques / Technical Publications L-3 MAS (Canada) J (450) 476-4850 e-mail: [EMAIL PROTECTED]
Where FOP Cant be used?
Dear All, As all knows FOP is used for Financial typesetting and in some other areas. Can any one specify where FOP cant be used? thanks, Ganesh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where FOP Cant be used?
Ganesh Babu Nallamothu, Integra wrote: Dear All, As all knows FOP is used for Financial typesetting and in some other areas. Can any one specify where FOP cant be used? XSL-FO in general and therefore FOP is not very good at producing statements with running totals etc. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where FOP Cant be used?
--- Ganesh Babu Nallamothu, Integra [EMAIL PROTECTED] wrote: Dear All, As all knows FOP is used for Financial typesetting and in some other areas. Can any one specify where FOP cant be used? fop can be used to generate PDF documents. Regardless for which puprose. regards, = [ Konstantin Pribluda ( ko5tik ) ] Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programieren, Kentnisse in OpenSource-Bereich [ http://www.pribluda.de ] __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : hyphenation problem
I try the rebuild method proposed and both points of last mail are ok. Thank you very much. Ro -- -Message d'origine- -- De : Peter Menzel [mailto:[EMAIL PROTECTED] -- Envoyé : mardi 27 janvier 2004 10:06 -- À : [EMAIL PROTECTED] -- Objet : Re: hyphenation problem -- -- -- Hi -- -- If you want to include new hyphenation patterns into fop, -- it's not enough to zip them into the fop.jar.. You have to -- download the source, copy the patterns in the hyph dir and -- then run the build script, to compile a new jar file.. -- -- Peter -- -- -- -- Hy, -- -- I upgrade from 0.20.4 to 0.20.5 and I have the following -- error in the -- log : -- -- [ERROR] Couldn't find hyphenation pattern fr_fr -- using general language pattern fr instead. -- -- Even I've add to fop.jar the fr.hyp file. -- -- Maibe it's not the right solution, but french hyphenation was not -- support in the 0.20.5 I beleave. -- -- Could someone help please. -- -- -- -- -- -- [EMAIL PROTECTED] -- Institut für Medizinische Informatik, Statistik und -- Epidemiologie (IMISE) Universität Leipzig -- -- -- - -- To unsubscribe, e-mail: [EMAIL PROTECTED] -- For additional commands, e-mail: [EMAIL PROTECTED] -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installed new SAMBA version, now FOP quits with Exception
Hi Roland, I just installed a new version of samba and now FOP is no longer working correctly. It always quits with the following error: Exception in thread main java.lang.UnsatisfiedLinkError: /usr/local/j2re1.4.1_05/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory I am running fop-0.20.5 and the file mentioned above does exist. I did no changes to java or fop installation. Now I am quite helpless what to search for to solve this. This is a linker error, most probably not connected to FOP. You need to either: - add /usr/X11R6/lib in LD_LIBRARY_PATH environment variable - or add /usr/X11R6/lib in /etc/ld.so.conf Maybe you should check /etc/ld.so.conf first. It is possible that samba installation made changes to this file... You can verify if linker finds the needed libraries with: $ ldd /usr/local/j2re1.4.1_05/lib/i386/libawt.so You should have a line like: libXp.so.6 = /usr/X11R6/lib/libXp.so.6 Regards, Alex Aleksandar Nikov [EMAIL PROTECTED] Netcetera Engineering phone +389 2 30 64 532 1000 Skopje, Macedonia fax +389 2 30 79 495 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installed new SAMBA version, now FOP quits with Exception
Hi all, I just installed a new version of samba and now FOP is no longer working correctly. It always quits with the following error: Exception in thread main java.lang.UnsatisfiedLinkError: /usr/local/j2re1.4.1_05/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory I am running fop-0.20.5 and the file mentioned above does exist. I did no changes to java or fop installation. Now I am quite helpless what to search for to solve this. Any ideas ? Kind regards, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installed new SAMBA version, now FOP quits with Exception
Hi Alex, This is a linker error, most probably not connected to FOP. You need to either: - add /usr/X11R6/lib in LD_LIBRARY_PATH environment variable - or add /usr/X11R6/lib in /etc/ld.so.conf Maybe you should check /etc/ld.so.conf first. It is possible that samba installation made changes to this file... I tried to set the LD_LIBRARY_PATH right before calling the fop shell script. Same situation. Then i looked for the /etc/ld.so.conf ... i do not have that file. You can verify if linker finds the needed libraries with: $ ldd /usr/local/j2re1.4.1_05/lib/i386/libawt.so You should have a line like: libXp.so.6 = /usr/X11R6/lib/libXp.so.6 Doing that produced the following: libmlib_image.so = not found libjvm.so = not found libXp.so.6 = not found libXt.so.6 = not found libXext.so.6 = not found libXtst.so.6 = not found libX11.so.6 = not found libm.so.6 = /lib/libm.so.6 (0x40307000) libdl.so.2 = /lib/libdl.so.2 (0x40329000) libjava.so = not found libc.so.6 = /lib/libc.so.6 (0x4032c000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) As I found all of the listed files somewhere, the path where fop (or whatever) looks for them must be configured wrong. What exactly is /etc/ld.so.conf good for? Where can i get one or how can i rebuild it? Kind regards, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where FOP Cant be used?
Ganesh Babu Nallamothu, Integra wrote: Hai Chris, Thanks for your reply. Could you please brief your point. I dont understand. Do you mean expand my point? Well a typical telephone bill has several transactions, with each transaction there are several columns of data, e.g. time of call, phone number dialed, call length, and cost. At the bottom of each page and then the bottom of the list of transactions totals are displayed. Whilst it is possible to calculate a running total in XSLT, it is not possible to place these totals precisely as the last row before a page break. Markers can be used to retrieve totals in static content but this is usually a little below the end of the table containing transactions, and a long way below the last transaction on the last page. Depending on the complexity of the statement, XSL-FO can fall a long way short of generating the desired output. Statements is one type of document that my company struggles to sell to our customers. Instead we prefer applications where the output is like a letter than flows without being hindered by totals and other meta data. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOPException: FOP processor fails during load test
Hi, I am using FOP to generate PDF reports from servlet. I am generating and storing the pdf report into file and serving that file so that I am avoiding repeating calls from browser. every thing going fine, I am able to generate pdf reports in development env(windows) and testing (AIX) but when a load test is performed on application(AIX, Websphere 5), pdf reports are failing after some time(like 20 users concurrently accessing the reports ) but all other functions of applicaiton running fine. Here is the exception I am getting and followed by the pdf code segment that causing this exception. Please let me know if I am doing wrong any where. I am guessing ,Driver has some problem, like hanging or not getting destroyed. Thanks subbareddy. org.apache.fop.apps.FOPException: root must be root element at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j ava(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle r.java(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler. java(Compiled Code)) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java( Compiled Code)) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp lyTemplates.java(Compiled Code)) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2081) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1137) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 600) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1054) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1032) at com.verizon.wbtt.components.servlet.controller.ControllerServlet.outputXML2P dfFile(ControllerServlet.java(Com piled Code)) at com.verizon.wbtt.components.servlet.controller.ControllerServlet.doProcess(C ontrollerServlet.java(Compiled Co de)) ** Code Segment *** public class ControllerServlet extends HttpServlet { private HashMap eventMappings; private TransformerFactory factory =null; Driver driver=null; private org.apache.avalon.framework.logger.Logger log= new ConsoleLogger (ConsoleLogger.LEVEL_FATAL); public void init() { String eventMappingsURL = null; try{ factory=TransformerFactory.newInstance(); MessageHandler.setScreenLogger(log); driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); } protected void outputXML2PdfFile (Source xml, String xslt, HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, IOException, FOPException, TransformerException { String id = getServletConfig().getServletContext().getRealPath(/); org.apache.fop.configuration.Configuration.put(baseDir, id); HttpSession session = request.getSession(); CacheDir pdfDir = (CacheDir) session.getAttribute(__PDFFILEDIR__); if (pdfDir == null) { CacheDir tempDir = (CacheDir) getServletContext().getAttribute(__TEMPFILEDIR__); if (tempDir == null) { //tempDir = new CacheDir (WbtsPdfDir, temp); tempDir = new CacheDir (id, temp); tempDir.mkdir(); getServletContext().setAttribute(__TEMPFILEDIR__, tempDir); } pdfDir = new CacheDir (tempDir, session.getId()); pdfDir.mkdir(); session.setAttribute(__PDFFILEDIR__, pdfDir); } // end of cache directory String pdfName = String.valueOf(System.currentTimeMillis()) + .pdf; OutputStream out = new FileOutputStream(new File(pdfDir, pdfName)); driver.setOutputStream (out); TransformerFactory factory = TransformerFactory.newInstance(); factory.setURIResolver(defaultURIResolver()); StreamSource slt = new StreamSource(getServletConfig().getServletContext().getResourceAsStream(xslt )); slt.setSystemId(id); Transformer transformer = factory.newTransformer(slt); SAXResult res = new SAXResult(driver.getContentHandler()); res.setSystemId(id); xml.setSystemId(id); transformer.transform(xml, res); out.flush(); out.close(); Logger.trace(Logger.SERVLET_LOGGING,ControllerServlet().outputXML2PdfFile() -- Forwarding to pdf file :+File.separator + pdfDir.getContextName() + File.separator + pdfName); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(File.separator + pdfDir.getContextName() + File.separator + pdfName); dispatcher.forward(request, response); //response.sendRedirect (File.separator + pdfDir.getContextName() +
RE: Way to determine new page?
So footnotes overwriting xsl-region-after is unintentional. Can footnotes be configured not to overwrite the xsl-region-after area or is this just a limitation of fop? Thanks. Devon -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:16 PM To: [EMAIL PROTECTED] Subject: Re: Way to determine new page? Readman, Devon wrote: Using footnote would work except I already use the xsl-region-after for a static page footer. I can live without footnotes but I need the xsl-region-after area. Footnotes don't have anything to do with the xsl-region-after area, except for bugs causing the latter to be overwritten unintentionally. Sounds like the features I need haven't been implemented yet - is there are a 'ballpark' implementation date for these features? No. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOPException: FOP processor fails during load test
On Tue, 2004-01-27 at 16:14, Subbareddy Kalakota wrote: Have replied to Subbareddy off-line to the effect that his problem might be one of thread-safety. He has several class variables (eventMappings, factory, driver and log) that must be thread-safe in order for the servlet to work. I suspect that the Driver class isn't thread-safe, leading to his problem. Hi, I am using FOP to generate PDF reports from servlet. I am generating and storing the pdf report into file and serving that file so that I am avoiding repeating calls from browser. every thing going fine, I am able to generate pdf reports in development env(windows) and testing (AIX) but when a load test is performed on application(AIX, Websphere 5), pdf reports are failing after some time(like 20 users concurrently accessing the reports ) but all other functions of applicaiton running fine. Here is the exception I am getting and followed by the pdf code segment that causing this exception. Please let me know if I am doing wrong any where. I am guessing ,Driver has some problem, like hanging or not getting destroyed. Thanks subbareddy. org.apache.fop.apps.FOPException: root must be root element at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j ava(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle r.java(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler. java(Compiled Code)) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java( Compiled Code)) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp lyTemplates.java(Compiled Code)) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2081) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1137) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 600) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1054) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1032) at com.verizon.wbtt.components.servlet.controller.ControllerServlet.outputXML2P dfFile(ControllerServlet.java(Com piled Code)) at com.verizon.wbtt.components.servlet.controller.ControllerServlet.doProcess(C ontrollerServlet.java(Compiled Co de)) ** Code Segment *** public class ControllerServlet extends HttpServlet { private HashMap eventMappings; private TransformerFactory factory =null; Driver driver=null; private org.apache.avalon.framework.logger.Logger log= new ConsoleLogger (ConsoleLogger.LEVEL_FATAL); public void init() { String eventMappingsURL = null; try{ factory=TransformerFactory.newInstance(); MessageHandler.setScreenLogger(log); driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); } protected void outputXML2PdfFile (Source xml, String xslt, HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, IOException, FOPException, TransformerException { String id = getServletConfig().getServletContext().getRealPath(/); org.apache.fop.configuration.Configuration.put(baseDir, id); HttpSession session = request.getSession(); CacheDir pdfDir = (CacheDir) session.getAttribute(__PDFFILEDIR__); if (pdfDir == null) { CacheDir tempDir = (CacheDir) getServletContext().getAttribute(__TEMPFILEDIR__); if (tempDir == null) { //tempDir = new CacheDir (WbtsPdfDir, temp); tempDir = new CacheDir (id, temp); tempDir.mkdir(); getServletContext().setAttribute(__TEMPFILEDIR__, tempDir); } pdfDir = new CacheDir (tempDir, session.getId()); pdfDir.mkdir(); session.setAttribute(__PDFFILEDIR__, pdfDir); } // end of cache directory String pdfName = String.valueOf(System.currentTimeMillis()) + .pdf; OutputStream out = new FileOutputStream(new File(pdfDir, pdfName)); driver.setOutputStream (out); TransformerFactory factory = TransformerFactory.newInstance(); factory.setURIResolver(defaultURIResolver()); StreamSource slt = new StreamSource(getServletConfig().getServletContext().getResourceAsStream(xslt )); slt.setSystemId(id); Transformer transformer = factory.newTransformer(slt); SAXResult res = new SAXResult(driver.getContentHandler()); res.setSystemId(id); xml.setSystemId(id);
Re: Last page
Forest, Sebastien wrote: I want to use the page-position=last in fo:conditional-page-master-reference but it is not implemented yet. Is there a workaround? Look at the two stage processing sample: http://xml.apache.org/fop/fo.html#fo-total-pages J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOPException: FOP processor fails during load test
John, Thanks for the reply. I try making the Driver at method level and see what would be the out come. I also made the log level to fatal, I set it to warning level, it may through out some more info. Thanks, Subbareddy. - Original Message - From: John Austin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 3:13 PM Subject: Re: FOPException: FOP processor fails during load test On Tue, 2004-01-27 at 16:14, Subbareddy Kalakota wrote: Have replied to Subbareddy off-line to the effect that his problem might be one of thread-safety. He has several class variables (eventMappings, factory, driver and log) that must be thread-safe in order for the servlet to work. I suspect that the Driver class isn't thread-safe, leading to his problem. Hi, I am using FOP to generate PDF reports from servlet. I am generating and storing the pdf report into file and serving that file so that I am avoiding repeating calls from browser. every thing going fine, I am able to generate pdf reports in development env(windows) and testing (AIX) but when a load test is performed on application(AIX, Websphere 5), pdf reports are failing after some time(like 20 users concurrently accessing the reports ) but all other functions of applicaiton running fine. Here is the exception I am getting and followed by the pdf code segment that causing this exception. Please let me know if I am doing wrong any where. I am guessing ,Driver has some problem, like hanging or not getting destroyed. Thanks subbareddy. org.apache.fop.apps.FOPException: root must be root element at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j ava(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle r.java(Compiled Code)) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler. java(Compiled Code)) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java( Compiled Code)) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp lyTemplates.java(Compiled Code)) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java(Compiled Code)) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2081) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1137) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 600) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1054) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1032) at com.verizon.wbtt.components.servlet.controller.ControllerServlet.outputXML2P dfFile(ControllerServlet.java(Com piled Code)) at com.verizon.wbtt.components.servlet.controller.ControllerServlet.doProcess(C ontrollerServlet.java(Compiled Co de)) ** Code Segment *** public class ControllerServlet extends HttpServlet { private HashMap eventMappings; private TransformerFactory factory =null; Driver driver=null; private org.apache.avalon.framework.logger.Logger log= new ConsoleLogger (ConsoleLogger.LEVEL_FATAL); public void init() { String eventMappingsURL = null; try{ factory=TransformerFactory.newInstance(); MessageHandler.setScreenLogger(log); driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); } protected void outputXML2PdfFile (Source xml, String xslt, HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, IOException, FOPException, TransformerException { String id = getServletConfig().getServletContext().getRealPath(/); org.apache.fop.configuration.Configuration.put(baseDir, id); HttpSession session = request.getSession(); CacheDir pdfDir = (CacheDir) session.getAttribute(__PDFFILEDIR__); if (pdfDir == null) { CacheDir tempDir = (CacheDir) getServletContext().getAttribute(__TEMPFILEDIR__); if (tempDir == null) { //tempDir = new CacheDir (WbtsPdfDir, temp); tempDir = new CacheDir (id, temp); tempDir.mkdir(); getServletContext().setAttribute(__TEMPFILEDIR__, tempDir); } pdfDir = new CacheDir (tempDir, session.getId()); pdfDir.mkdir(); session.setAttribute(__PDFFILEDIR__, pdfDir); } // end of cache directory String pdfName = String.valueOf(System.currentTimeMillis()) + .pdf;
RE : hyphenation problem
Do you think the error below can be generated by the absence of a fr.xml hyphenation file in the 0.20.5 version of FOP ? So the two problems (add hyphenation file and this error ) maibe the same one . If not, does someone know how I can fix this please : java.io.InvalidClassException: org.apache.fop.layout.hyphenation.HyphenationTree; Local class not compatible: stream cla ssdesc serialVersionUID=-7784516835472871478 local class serialVersionUID=6956085100635965297 at java.io.ObjectStreamClass.validateLocalClass(Unknown Source) at java.io.ObjectStreamClass.setClass(Unknown Source) at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.fop.layout.hyphenation.Hyphenator.getFopHyphenationTree(Hyphenator.java:165) at org.apache.fop.layout.hyphenation.Hyphenator.getHyphenationTree(Hyphenator.java:91) at org.apache.fop.layout.hyphenation.Hyphenator.hyphenate(Hyphenator.java:251) at org.apache.fop.layout.LineArea.doHyphenation(LineArea.java:1208) at org.apache.fop.layout.LineArea.addText(LineArea.java:857) at org.apache.fop.fo.FOText.addRealText(FOText.java:278) at org.apache.fop.fo.FOText.addText(FOText.java:252) at org.apache.fop.fo.FOText.layout(FOText.java:161) at org.apache.fop.fo.FObjMixed.layout(FObjMixed.java:139) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:326) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:360) at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:236) at org.apache.fop.fo.flow.Table.layout(Table.java:302) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) -- -Message d'origine- -- De : Peter Menzel [mailto:[EMAIL PROTECTED] -- Envoyé : mardi 27 janvier 2004 10:06 -- À : [EMAIL PROTECTED] -- Objet : Re: hyphenation problem -- -- -- Hi -- -- If you want to include new hyphenation patterns into fop, -- it's not enough to zip them into the fop.jar.. You have to -- download the source, copy the patterns in the hyph dir and -- then run the build script, to compile a new jar file.. -- -- Peter -- -- -- -- Hy, -- -- I upgrade from 0.20.4 to 0.20.5 and I have the following -- error in the -- log : -- -- [ERROR] Couldn't find hyphenation pattern fr_fr -- using general language pattern fr instead. -- -- Even I've add to fop.jar the fr.hyp file. -- -- Maibe it's not the right solution, but french hyphenation was not -- support in the 0.20.5 I beleave. -- -- Could someone help please. -- -- -- -- -- -- [EMAIL PROTECTED] -- Institut für Medizinische Informatik, Statistik und -- Epidemiologie (IMISE) Universität Leipzig -- -- -- - -- To unsubscribe, e-mail: [EMAIL PROTECTED] -- For
Re: Installed new SAMBA version, now FOP quits with Exception
Hi Roland, I tried to set the LD_LIBRARY_PATH right before calling the fop shell script. Same situation. Then i looked for the /etc/ld.so.conf ... i do not have that file. You should export the variable before calling the fop shell script: $ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib $ export LD_LIBRARY_PATH $ ... then run the fop shell script As I found all of the listed files somewhere, the path where fop (or whatever) looks for them must be configured wrong. The path depends on unix version. As this is not a FOP problem, please write me directly which unix you have. You can also try looking in the man pages for ld, ldd, ldconfig and ld.so to see what is the search path for the libraries. Regards, Alex Aleksandar Nikov [EMAIL PROTECTED] Netcetera Engineering phone +389 2 30 64 532 1000 Skopje, Macedonia fax +389 2 30 79 495 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Space After
Hi, I am trying to use variables inside blocks as below fo:block xsl:if test=$City!='' xsl:value-of select=normalize-space($City)/ xsl:if test=$State!='' #x2C;#160;xsl:value-of select=$State/ /xsl:if xsl:if test=$Zip!='' #160;xsl:value-of select=normalize-space($Zip)/ xsl:if test=$ZipExt!='' -xsl:value-of select=$ZipExt/ /xsl:if /xsl:if /xsl:if /fo:block My expected output is City, State Zip-ZipExt But i am getting City{space}, State Zip{Space}-ZipExt Please let me know how to avoid the extra space after the variable. Thanks -AV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Space After
Anil wrote: xsl:value-of select=normalize-space($City)/ xsl:if test=$State!='' #x2C;#160;xsl:value-of select=$State/ /xsl:if ... My expected output is City, State Zip-ZipExt But i am getting City{space}, State Zip{Space}-ZipExt The XSLT processor strips whitespace-only nodes from the stylesheet. Thie means any text nodes with any non-whitespace character is left as is, including *all* whitespace. Even whitespace at the end or beginning is *not* stripped. There is *no* whitespace normalization for these nodes. A non-breaking space is not a whitespace. THerefore you get the linefeed after the xsl:if opening tags as well as the spaces used for indentation into the output. Either try to omit the whitespace you dont want: xsl:if test=$State!=''#x2C;#160;xsl:value-of select=$State/ or enclose significant text in xsl:text: xsl:if test=$State!='' xsl:text#x2C;#160;/xsl:text xsl:value-of select=$State/ J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bugzilla entry for fo:retrieve-marker bug?
Steinar Bang wrote: It's said to be a known bug, but I couldn't find an entry for it in bugzilla. Did I miss it, or don't it have a report. If it doesn't have a report, should I report it with a test case? Because the bug will not appear in the same for in the current development code, it's somewhat redundant to file a bug for it now. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : hyphenation problem
VAGNER Rodolphe wrote: Do you think the error below can be generated by the absence of a fr.xml hyphenation file in the 0.20.5 version of FOP ? So the two problems (add hyphenation file and this error ) maibe the same one . If not, does someone know how I can fix this please : java.io.InvalidClassException: ...Local class not compatible: This happens if you try to load a compiled hyphenation pattern instance from an incompatible class. Try the following: - get a FOP source distribution - add your fr.xml to the source/hyph - run build.sh package J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font-Problem depending on Java-VM
Chris Bowditch wrote: Matthias Schäfer wrote: Hello, printing Text with or ' with IBM 1.3.0 works fine. Trying SUN 1.3.1_08 or SUN 1.3.1_09 I get squares instead of the expected Characters. This sounds like an encoding issue. What is the encoding of your FO file (or XML and XSL files) Also, what font are you using? The result of converting a RTF-File from MS-Word with RTF2FO (rtf2fo.com) is a FO-File in UTF-8. Changing Times to Helvetica doesn't change anything. Saving the FO-File with XML-Spy as ISO-8859-1 recognize the Characters 0x201E, 0x201C, 0x201A, 0x2019 as not representable. Replacing it with _ shows _ as expected. Changing this Character in XML-Spy with (0x0034) and ' (0x0039) shows this Characters. But there is one vital Difference. The Chars I entered are aligned at the top. The Original a aligned one at bottom, one at top. In my next Test I entered the Chars (0x0034) and ' (0x0039) again in a Textfile with Notepad. After saving this File with Word as RTF I convert it with RTF2FO. Now I get the Characters as I typed in. So the problem seems to be the special Chars of Unicode-Table 20. But is it FOP or is it the Java-VM ? With SUN 1.4.2_01 it works only with fop-0.20.5rc2, but not with fop-bidi (from Oleg Tkachenko) because of java.lang.NoClassDefFoundError: sun/awt/font/Bidi. Unfortunately I need the Bidi-Version ! The bidi classes are only available since JDK 1.4. You will need to compile and run using JDK 1.4 or later. I guess I have to use the JDK-Class in java.text.Bidi instead of sun/awt/font/Bidi used with older JDK's ? snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]