(forwarded to the list with permission)

Hi Russell.

Russell Francis:
> sorry to contact you unsolicited but do you know of any working examples where
> you can specialise the SVG foreignObject tag to render XHTML from Batik? I 
> have
> the simple word wrap example working but we need the ability to render complex
> HTML documents as SVGs via the Apache FOP project and I thought this might be
> the neatest way to do it. I am looking into the Flying Saucer project and this
> looks like an nice XHTML engine to do the job but I could not find anyone that
> had already integrated the two projects. The only mention of this was on the
> SummerOfCode2008 web site where I found your contact details.

At one point I started looking at integrating Flying Saucer so that it
could be used inside a <foreignObject>, and I had a small amount of
success.  I was able to get a (vector) rendering of the XHTML, and for
it to be treated as any other graphical content in the SVG (so you could
transform it, filter it, etc.), but with a number of shortcomings:

  * the CSS engines were not integrated, so the XHTML tree did not
    inherit properties from the containing SVG,

  * modifying the XHTML tree did not result in the graphics updating,

  * the XHTML was static, no interaction was supported.

> As an aside we also need Apache FOP to render the new Microsoft Office XML
> formats as well, I have researched how to do this but I was wondering if you
> knew if it had already been done.

I don’t know if that has been done already; I guess asking the fop-users
mailing list would get you a more conclusive answer.

> If neither of these two features have been implemented yet then we would be
> keen to contribute these to the Apache FOP and Batik projects if you wanted.

It’d be great if you could help work on Batik’s <foreignObject> support!
And a converter from Microsoft Office XML to XSL-FO would likely be
appreciated by the FOP folks.  I am a little busy until late next week,
but I can dig up my experiments then and pass them on to you, or maybe
create a branch in SVN and you could contribute patches.

PS: do you mind if I forward this on to batik-dev?  It may be of
interest to other Batik people, too.

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/

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

Reply via email to