cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Aichholzer" <>
Subject Re: WordML image to jpeg/gif via cocoon?
Date Thu, 02 Sep 2004 13:41:05 GMT
On Thu, 2 Sep 2004 20:59:51 +0800, Lincoln Mitchell <>  

> How would I convert an image in wordML to a jpeg or gif via Cocoon?
> So far I have only found this .net solution by Oleg Tkachenko:
> "In WordML images are embedded into document (Base64 encoded). So when
> producing HTML, images have to be decoded and serialized out as external
> files to link from the generated HTML. This cannot be done in pure XSLT  
> 1.0.
> But it's piece of cake using extensions, e.g. take a look at my sample
> implementation for .NET:

Hi Lincoln,

here are some ideas which came just to my minds:

- convert your WordML to HTML with links for images
   (similar to the following):

     <img src="http://localhost:8888/getimg.html?imgno=nn"/>

- getimg.html is a pipeline which returns the nn'th image
   from the WordML document (of course you need some method
   to specify the WordML document, too).

   Because this is base64 encoded you need to decode it.
   I don't know if this will be possible using XSLT only,
   because also in the sample provided by you an external
   function is used.

Just some basic thougts, no working solution ;)

Using M2, Opera's revolutionary e-mail client:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message