Re: how to extend the rendering part of fop

2011-01-06 Thread gen1986
I finally worked it out. Ouf. I had to create a ImageFactoryLoader and a Loader to create my initial Image from the context. After reading the code I conclude that we can't avoid creating the Loader and LoaderFacotry. If you look at the code of

Re: how to extend the rendering part of fop

2011-01-05 Thread gen1986
Stepan and Eric thanks for the suggestions but the whole thing must be done in java (the charting is only a part of the app). Jeremias solution is close to what I must do. After following the explanations of Jeremias and reading the sources of Barcode4J, etc. I manage to get something out, but

Re: how to extend the rendering part of fop

2011-01-05 Thread Chris Bowditch
On 05/01/2011 10:52, gen1986 wrote: Hello, Stepan and Eric thanks for the suggestions but the whole thing must be done in java (the charting is only a part of the app). Jeremias solution is close to what I must do. After following the explanations of Jeremias and reading the sources of

Re: how to extend the rendering part of fop

2011-01-05 Thread gen1986
Hi Chris, Did you add the file named org.apache.xmlgraphics.image.loader.spi.ImageConverter to the JAR containing your code in META-INF\services sub directory as suggested by Jeremias? Yep (you can see it in the attachment). I have created a ImageChartPreloader to preload the ImageInfo

Re: how to extend the rendering part of fop

2011-01-05 Thread Jeremias Maerki
On 05.01.2011 16:25:20 gen1986 wrote: Hi Chris, Did you add the file named org.apache.xmlgraphics.image.loader.spi.ImageConverter to the JAR containing your code in META-INF\services sub directory as suggested by Jeremias? Yep (you can see it in the attachment). the attachment

how to extend the rendering part of fop

2011-01-03 Thread gen1986
Hi, I'm working on a project where I have to extend FO to support custom tags for drawing charts. For doing so I've extended ElementMapping and created my custom ContentHandlerFactory, etc. Until here it's ok. I can get all the infos about the chart from the xsl-fo template. My problem is that

Re: how to extend the rendering part of fop

2011-01-03 Thread gen1986
Hi Jeremias, Thanks for your quick response. However I'll give some more informations about what I'm trying to achieve. A sketch of the template : ... XSL-FO tags ... fo:instream-foreign-object... chart:chart xmlns:c=www...charts.. c:pie width=.. height=.. c:title value=Hello Piechart/ ...

Re: Re: how to extend the rendering part of fop

2011-01-03 Thread Stepan RYBAR
Hi, Eugen, try to look for a minute on the XSL-T 2.0 library graph2svg, could be found on http://graph2svg.jinak.cz/examples_en.html;. It is pure XSL-T 2.0 from XML to SVG (when using two-phase transformation even inline SVG). The source XML code of graph2svg looks very similar to Your example

Re: how to extend the rendering part of fop

2011-01-03 Thread Jeremias Maerki
On 03.01.2011 20:34:03 gen1986 wrote: Hi Jeremias, Thanks for your quick response. However I'll give some more informations about what I'm trying to achieve. A sketch of the template : ... XSL-FO tags ... fo:instream-foreign-object... chart:chart xmlns:c=www...charts.. c:pie

RE: Re: how to extend the rendering part of fop

2011-01-03 Thread Eric Douglas
I was going to suggest SVG, the simplest way to produce a chart, but the OP asked about extensions like they already had something more complicated in mind with their mind made up about how they want to do it.