cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Aichholzer" <ga...@iicm.tu-graz.ac.at>
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 <lincoln@linc.net.au>  
wrote:

> 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:
> http://www.tkachenko.com/blog/archives/000195.html"
>

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):

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

- 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 ;)

HTH,
Gerald
-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message