RE: XHTML -- FO
Hi, i dont know whether this would be helpfulMay be u can do a reverse engineering :-) This is the transformation of FO to HTML. The site is www.renderex.com May be u can find something over there... Browsing XSL FO XSL Formatting Objects are an XML dialect; why not render them to HTML by an XSLT stylesheet? What you see below is the first attempt to materialize this idea. It is created and maintained by RenderX development team as an add-on to our principal product, XEP. Introduction Here is the stylesheet: fo2html.xsl. Please download it and try to view your favorite XSL FO documents in a browser. Don't expect the result to be perfect - see below about limitations, but - look at our demos! If you plan to extend it to cover more of the XSL spec, please share your accomplishments with us. Here are some examples produced by the stylesheet from FO files. PDFs (generated by XEP) are also given; they serve as a reference to assess the quality of their HTML counterparts. All examples have been tested in IE5: for reasons explained below, we cannot guarantee full interoperability with other browsers. Description XSL FO HTML PDF (reference) Hammer Manual hammer.fo hammer.fo.html hammer.pdf XML 1.0 Recommendation xml2e.fo xml2e.fo.html xml2e.pdf XPath 1.0 Recommendation xpath.fo xpath.fo.html xpath.pdf Possible Use A stylesheet like this may be used to reduce the complexity in a publishing system with multiple target media: you generate XSL FOs from semantic XML data, and use it as a source for all other presentation formats. When your data structure changes, you only have to modify XML-to-XSLFO stylesheet. Technical Notes
IndexOutOfBoundException
Hi, I've gt this error transforming .fo to.pdf [fo2pdf] [INFO] building formatting object tree [fo2pdf] [INFO] setting up fonts [fo2pdf] [INFO] [1] [fo2pdf] [INFO] [2] [fo2pdf] [INFO] [3] [fo2pdf] [INFO] [4 (blank)] [fo2pdf] [INFO] [1] [fo2pdf] [INFO] [2] [fo2pdf] [INFO] [3] [fo2pdf] [INFO] [4] [fo2pdf] [INFO] [5] [fo2pdf] [INFO] [6] [fo2pdf] [INFO] [7] [fo2pdf] [INFO] [8] [fo2pdf] [INFO] [9] [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] [10] [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] area contents overflows area [fo2pdf] [INFO] [11] [fo2pdf] [ERROR] Couldn't render file: Index: 14, Size: 7 BUILD FAILED file:U:/cybertheses-up/oo2xml/outils/bin/oo-vers-tei.xml:565: java.lang.IndexOutOfBoundsException: Index: 14, Size: 7 I'd like to know if there's a way to know which table(I think it's the pb) is too big, what does index:14 and size:7 mean? attachment: bubenheim_m-TH.4.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using ExampleObj2PDF using Oracle 9iasOC4J.
Hello, I have tried a program like the ExampleObj2PDF using the AbstractObjectReader and the EasyContent...Proxy. It was working fine. Now, Itry to deploy an EJB using the same code in a 9IAS OC4J server. The problem is now that the jaxp2 lib used in OC4J is not Xerces2 but an Oracle implementation and I have the following exception : Rendering ... java.lang.ClassCastException: com.clipack.foprenderer.datasheet.SimpleDatasheetReader at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:207) at com.clipack.foprenderer.FOPRendererManager.render(FOPRendererManager.java:62 ) at com.clipack.foprenderer.ejb.impl.FOPRendererBean.render(FOPRendererBean.java :59) at FOPRenderer_StatelessSessionBeanWrapper0.render(FOPRenderer_StatelessSession BeanWrapper0.java:90) at com.clipack.portal.presentation.renderer.SimpleDatasheetRenderer.render(Simp leDatasheetRenderer.java:85) at _jsp._fopRenderer._jspService(_fopRenderer.java:59) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa tcher.java:721) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq uestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle r.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:797) at java.lang.Thread.run(Thread.java:484) SimpleDatasheetReader is the equivalent in my program of ProjectTeamXmlReader which extends AbstractObjectReader which implements org.xml/sax.XMLReader. As the both implementation (xerces and oracleXMLParserV2) respect the jaxp and sax2 interface I don't understand why, there is this exception. Is there somebody who has an idea to make the code appliable to the oracle parser, or is there somebody who knows how to tell fop using the good parser (xerces2) without passing through the classpath (Xerces2 will be always after OracleXmlparserV2 in the classpath) ? regards, Laurent. PS : I can post the code if somebody needs . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using ExampleObj2PDF using Oracle 9iasOC4J.
Good to see that my code was worth the time and it gets used. :-) Let's see: What you do here has relatively little to do with the XML parser (Xerces or whatever). We're doing an XSL transformation here. FOP uses Apache Xalan per default. Oracle seems to have its own implementation. I don't have any idea why there's a ClassCastException without having the ability to debug in your environment. If you have the source code from JXTransformer, see if you can find out what it expects at line 207. As a workaround, try the following: Make sure you've got Xalan in your classpath. Then switch this line: TransformerFactory factory = TransformerFactory.newInstance(); with this: TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); This should make sure you get a Xalan transformer and not the JAXP default. (Disclaimer: not tested, just a shot from the hip) I hope this helps. Maybe someone else familiar with the Oracle enviroment has an idea. On 26.02.2003 10:07:42 Laurent Forêt wrote: Hello, I have tried a program like the ExampleObj2PDF using the AbstractObjectReader and the EasyContent...Proxy. It was working fine. Now, Itry to deploy an EJB using the same code in a 9IAS OC4J server. The problem is now that the jaxp2 lib used in OC4J is not Xerces2 but an Oracle implementation and I have the following exception : Rendering ... java.lang.ClassCastException: com.clipack.foprenderer.datasheet.SimpleDatasheetReader at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:207) at com.clipack.foprenderer.FOPRendererManager.render(FOPRendererManager.java:62 ) at com.clipack.foprenderer.ejb.impl.FOPRendererBean.render(FOPRendererBean.java :59) at FOPRenderer_StatelessSessionBeanWrapper0.render(FOPRenderer_StatelessSession BeanWrapper0.java:90) at com.clipack.portal.presentation.renderer.SimpleDatasheetRenderer.render(Simp leDatasheetRenderer.java:85) at _jsp._fopRenderer._jspService(_fopRenderer.java:59) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa tcher.java:721) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq uestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle r.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:797) at java.lang.Thread.run(Thread.java:484) SimpleDatasheetReader is the equivalent in my program of ProjectTeamXmlReader which extends AbstractObjectReader which implements org.xml/sax.XMLReader. As the both implementation (xerces and oracleXMLParserV2) respect the jaxp and sax2 interface I don't understand why, there is this exception. Is there somebody who has an idea to make the code appliable to the oracle parser, or is there somebody who knows how to tell fop using the good parser (xerces2) without passing through the classpath (Xerces2 will be always after OracleXmlparserV2 in the classpath) ? regards, Laurent. PS : I can post the code if somebody needs . Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP0.20.3 VS Fop0.20.5 in counting number of pages
Hi all, I'm using FOP 0.20.3 and i'm trying to count the number of pages of a pdf generated document. Therefore i'm using the getResults().getPageCount() method of the Driver object to do so. I'm using FOP with differents XSL stylesheets documents and i noticed that the result is accurate for all but one. The stylesheet that causes the inaccuracy is more intricate than the other ones. It is using break-before, force-page-count statements and static contents that fit on entire pages and it has many page-sequences. So here comes my question : is fop 0.20.5 better at counting the number of pages than fop 0.20.3 ? if not are there any workarounds? Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Fop Logo Contest
cheers A -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 10:36 To: [EMAIL PROTECTED] Subject: Re: Fop Logo Contest Andy Joslin wrote: Here's a couple of designs for the logo competition. I've done the design in a few different colours as an example of how the logo could work in different situations. The logo is meant to be simple, scalable and can include the 'powered by' text if required. I can provide a SVG if necessary, but I've sent these through as gif's for now. Added to the list, thanks, Andy. Looks like very professional work. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and its attachments are confidential. If you are not the intended recipient of this e-mail message, please telephone or e-mail us immediately, delete this message from your system and do not read, copy, distribute, disclose or otherwise use this e-mail message and any attachments. Although ri3k Limited believes this e-mail and any attachments to be free of any virus or other defect which may affect your computer, it is the responsibility of the recipient to ensure that it is virus free and ri3k Limited does not accept any responsibility for any loss or damage in any way from its use. ri3k Limited Registered in England: 10-12 Ely Place, London, EC1N 6RY Company Number: 3909745 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using ExampleObj2PDF using Oracle 9iasOC4J.
TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); Works fine, thanks a lot. Laurent. PS: I am very glad to please you ! It was exactly corresponding to my needs. - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:49 AM Subject: Re: Problem using ExampleObj2PDF using Oracle 9iasOC4J. Good to see that my code was worth the time and it gets used. :-) Let's see: What you do here has relatively little to do with the XML parser (Xerces or whatever). We're doing an XSL transformation here. FOP uses Apache Xalan per default. Oracle seems to have its own implementation. I don't have any idea why there's a ClassCastException without having the ability to debug in your environment. If you have the source code from JXTransformer, see if you can find out what it expects at line 207. As a workaround, try the following: Make sure you've got Xalan in your classpath. Then switch this line: TransformerFactory factory = TransformerFactory.newInstance(); with this: TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); This should make sure you get a Xalan transformer and not the JAXP default. (Disclaimer: not tested, just a shot from the hip) I hope this helps. Maybe someone else familiar with the Oracle enviroment has an idea. On 26.02.2003 10:07:42 Laurent Forêt wrote: Hello, I have tried a program like the ExampleObj2PDF using the AbstractObjectReader and the EasyContent...Proxy. It was working fine. Now, Itry to deploy an EJB using the same code in a 9IAS OC4J server. The problem is now that the jaxp2 lib used in OC4J is not Xerces2 but an Oracle implementation and I have the following exception : Rendering ... java.lang.ClassCastException: com.clipack.foprenderer.datasheet.SimpleDatasheetReader at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:207) at com.clipack.foprenderer.FOPRendererManager.render(FOPRendererManager.java:62 ) at com.clipack.foprenderer.ejb.impl.FOPRendererBean.render(FOPRendererBean.java :59) at FOPRenderer_StatelessSessionBeanWrapper0.render(FOPRenderer_StatelessSession BeanWrapper0.java:90) at com.clipack.portal.presentation.renderer.SimpleDatasheetRenderer.render(Simp leDatasheetRenderer.java:85) at _jsp._fopRenderer._jspService(_fopRenderer.java:59) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa tcher.java:721) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq uestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle r.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.ja va:797) at java.lang.Thread.run(Thread.java:484) SimpleDatasheetReader is the equivalent in my program of ProjectTeamXmlReader which extends AbstractObjectReader which implements org.xml/sax.XMLReader. As the both implementation (xerces and oracleXMLParserV2) respect the jaxp and sax2 interface I don't understand why, there is this exception. Is there somebody who has an idea to make the code appliable to the oracle parser, or is there somebody who knows how to tell fop using the good parser (xerces2) without passing through the classpath (Xerces2 will be always after OracleXmlparserV2 in the classpath) ? regards, Laurent. PS : I can post the code if somebody needs . Jeremias Maerki - 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]
jai/jimi support
Title: jai/jimi support I cant get a png file to load I continue to get the following message. [ERROR] Error while creating area : Error creating FopImage object (file:tcolon.png) : Jimi image library not available from fo:block fo:external-graphic role=img src=""> /fo:block I have added the jimi-1.0.jar files as well as jai_codec.jar and jai_core.jar to the lib dir. I've tried 20.4 and .20.5rc2 bundled and compiled myself. What am I doing wrong? Thanks, Mike
FOP with jimi
Title: FOP with jimi Hallo Here is the link to the release notes http://xml.apache.org/fop/relnotes.html In the release notes of the version 0.20.3 there is following text: Jimi has been removed for licensing reasons If you need PNG support you have to download Jimi http://java.sun.com/products/jimi/, copy it to lib/ and build FOP yourself I download the file jimi1_0.zip and copy it to lib/. How can i build FOP by myself? version 0.20.4 : Fop has been compiled with Jimi support this time but you still have to download Jimi http://java.sun.com/products/jimi/ and copy it to lib/ to get PNG support (no need to build FOP yourself though). I download the file jimi1_0.zip and copy it to lib/. When running FOP following error uccurs: Error while creating area : Error creating FopImage object (file:rating.png) : Jimi image library not available Why? i hope you can help Martin
Re: Problem using ExampleObj2PDF using Oracle 9iasOC4J.
A good idea to find out what's wrong is to disable FOP and serialize the generated XSL-FO to a file at the place where you normally pipe the SAX events over to FOP. Then, check the generated file if it's what you expected. On 26.02.2003 17:02:39 Laurent Forêt wrote: I 've written too fast. I have now, no more exception. And, It seems to work properly, but the result disappoints me. As a result I have a pdf file with a blank page. Indeed, I made a test with a simple stylesheet, which write all PCDATA node in a block (tested with a simple xml file using fop.bat) : snip/ Everything seems to be ok, all events seem to be generated by SimpleDatasheetReader. The parse and the rendering seem ok, but the result is a blank page. I am going to try to put more debugs but if someone have an idea. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jai/jimi support
Hmm, make sure you do a build clean before the build or you cannot be certain, that the files inquestion get recompiled. I hope that helps. On 26.02.2003 17:04:19 Valeiko, Michael wrote: I cant get a png file to load I continue to get the following message. [ERROR] Error while creating area : Error creating FopImage object (file:tcolon.png) : Jimi image library not available from fo:block fo:external-graphic role=img src=url('tcolon.png')/ /fo:block I have added the jimi-1.0.jar files as well as jai_codec.jar and jai_core.jar to the lib dir. I've tried 20.4 and .20.5rc2 bundled and compiled myself. What am I doing wrong? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP with jimi
On 26.02.2003 17:05:27 Pachinger Martin wrote: Hallo Here is the link to the release notes http://xml.apache.org/fop/relnotes.html In the release notes of the version 0.20.3 there is following text: Jimi has been removed for licensing reasons If you need PNG support you have to download Jimi http://java.sun.com/products/jimi/, copy it to lib/ and build FOP yourself I download the file jimi1_0.zip and copy it to lib/. How can i build FOP by myself? In the root directory of the FOP distribution, call build clean followed by build. Substitute build by ./build.sh on unix. version 0.20.4 : Fop has been compiled with Jimi support this time but you still have to download Jimi http://java.sun.com/products/jimi/ and copy it to lib/ to get PNG support (no need to build FOP yourself though). I download the file jimi1_0.zip and copy it to lib/. When running FOP following error uccurs: Error while creating area : Error creating FopImage object (file:rating.png) : Jimi image library not available Why? If you use fop.bat it should work. If not make sure the library is in the classpath. Renaming jimi1_0.zip to jimi.jar could help, too. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can one specify multiple input xml files?
Hi, We are planning on using java/fop on Netscape DevEdge to generate PDFs from our xml source, and I was wondering if its possible to specify multiple input xml files somehow? regards, Doron -- Doron Rosenberg Netscape Communications Corp. Get Netscape 7.02 at http://channels.netscape.com/ns/browsers/ now! Netscape DevEdge - http://devedge.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: symbol font SVG not display
H. krishna wrote: See my root element. fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:svg=http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd; This is correct or wrong? Kindly advise me. Actually, this is not relevant to your problem. There is, however, a certain possibility that SVG is totally broken in FOP 0.20.5rc2. If you use this version try 0.20.5rc1, which IIRC works. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IndexOutOfBoundException
Myriam Delperier wrote: Hi, I've gt this error transforming .fo to.pdf ... java.lang.IndexOutOfBoundsException: Index: 14, Size: 7 This is probably cause by bad colspans, undeclared columns, absolute cell-to-column-assignments or some other similar problem. I'd like to know if there's a way to know which table(I think it's the pb) is too big, Binary search: Delete stuff until the problem goes away, undo the last delete and delete something else until you see the trouble spot. what does index:14 and size:7 mean? A canned message from the JRE. Run your FO through the command line app with the -d flag. You should get a stack trace with some more information. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using ExampleObj2PDF using Oracle 9iasOC4J.
Laurent Forêt wrote: xsl:template match=/|* ^ This is a bad idea, in particular because you have this: xsl:apply-templates/ further down. Look for errors in the logs (if there are logs) - Original Message - BTW it is considered bad netiquette to leave unused old quotes in. Your message was barely 25% of the total mail. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can one specify multiple input xml files?
Doron Rosenberg wrote: We are planning on using java/fop on Netscape DevEdge to generate PDFs from our xml source, and I was wondering if its possible to specify multiple input xml files somehow? It depends what you mean by generating... from XML. There is half a zillion of possibilities to aggregate XML. From within an XSL transformation you can use the document() function, if the URLs of XML documents to be included are available form either the source XML document or from parameters. You can also look at using XML entities or XInclude. A further approach would be to write a custom SAX filter. Neither of this is really a matter this list deals with. Depending on your choice, ask on a more specilised list (XSL list, XML-DEV, or a SAX forum). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]