Doug,
I meant to answer this but somehow it slipped through the cracks. Sorry.
In addition to Cameron's suggestion to take this to the fop-users
mailing list, let me just say this:
You could create a FOP extension that supports the XML format of
JFreeChart. You would then put the XML inside a fo:foreign-object (not
an fo:external-graphic) and the extension would internally create the
chart as an SVG or Java2D graphic. The same pattern is used for the
MathML, Barcode4J and plan demo extension. A little more work than the
indirection via a file but it would be a cleaner approach.

More on fop-users if you want to follow up.
http://xmlgraphics.apache.org/fop/maillist.html#fop-user

On 23.03.2007 03:21:41 Cameron McCormack wrote:
> Hi Doug.
> 
> Doug Dwyer:
> >               In the past two days or so, I just discovered
> > JFreeChart for creating “Excel” type graphs in java. Today, I
> > purchased the documentation for JFreeChart Developer’s Guide.
> > I did this for several reasons; my main reason was to see the
> > SVG example. But, I seem to be missing some important piece of
> > information about SVG and JFreeChart. I followed the simple example
> > and generated an XML file that would describe how to create a
> > very simple chart. But the XML file seems to be a complete stand
> > alone file. I need to output either XML to put in my XSL or just
> > directly put it into my XSL. Then I took a look at this site
> > http://xmlgraphics.apache.org/fop/dev/fo/embedding.fo.pdf for
> > embedding the SVG into FOP. However, how would I dynamically utilize
> > that in FOP? It would seem that I could save the XML of the SVG to
> > a file and require my XSL to ask for the file from disk. However, I
> > am not seeing what I gain by doing this because I could have easily
> > just saved the chart as an jpg image file (<fo:external-graphic
> > height="7.8in" src="chart.jpg"/>) never utilizing SVG and required my
> > XSL to get the file from disk. I apologize for any ambiquity, I am
> > just getting my feet wet in XSLT and FOP and JFreeChart and now SVG.
> 
> I think your question would be best asked on the fop-users list.  My
> guess is that fo:external-graphic can only reference a URI, so you’d
> either have to have the SVG saved to disk (it still having the advantage
> over JPEG of being scalable in the resulting PDF), or to have some sort
> of web service that generates the dynamic SVG and have the URI reference
> it.
> 
> Cameron



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to