[Home] [By Thread] [By Date] [Recent Entries]
Mario,
At 09:31 AM 8/6/2009, you wrote: WMF.Sorry about the foggy subject line and if this isnbt appropriate for this mailing list. Parse the SVG to create the appropriate file type (jpg, gif, wmf, etc, or just plain old SVG) for output type, resize (based on conditions), place the modified image in the appropriate dir/db table. All this using XSLT via either a call to Java class or a custom XSLT function calling a Java class. This doesn't sound unreasonable. What I do is quite similar. I use Apache Cocoon, which allows me to look up and load SVG files, rasterize them into jpeg or PNG (using Apache Batik, which comes with Cocoon), and rescale them, when necessary, while doing so (using XSLT). The reference to the file is either a direct call to the server where Cocoon is running, or by means of a key which is expanded by XSLT into such a link. Essentially, this does everything you describe, except I use Cocoon instead of writing the Java myself, plus it's RESTful, using calls on a (local) web server instead of extension functions. You could certainly emulate this functionality in Java, using components you either acquired (from Cocoon or elsewhere) or wrote yourself. Cheers, Wendell
|

Cart



