cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: source writer transformer
Date Thu, 13 May 2004 17:15:36 GMT
On 13.05.2004 15:05, keith d. zimmerman wrote:

>>> Ok, as has been suggested, simple questions, single question per e-mail.
>>> Can I do this?
>>> Http Generator
>>> Transformer to basically aquire a particular <img> tag within the doc.
>>> something or the other to go "get" the image
>>> source writing transformer to store the image on disk
>>> <img> tag with src= pointing to the cached copy in the resulting 
>>> xhtml doc.
>> It does not sound undoable. You want to rewrite the original document 
>> and replace the original image references with references to your 
>> stored images? And using Cocoon as proxy only (for xhtml *and* images) 
>> and letting the rest be done by caching does not help? The latter 
>> sounds easier to implement.
> Eh, it'd work fine if i knew where cocoon stores the images.  I want to 
> archive them, then....

So you need more than a simple caching of the images or what does 
"archive" mean? You should not assume to have access to the cache, you 
would need another approach then.

But Cocoon is not for handling images/binary data, so it's for example 
not possible to use the source writer transformer. Something that 
*might* work is the usage of PipelineUtil.processToStream() in 
flowscript, with a pipeline containing a reader reading the remote 
image, and handling the storage on disc by the flowscript.


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

View raw message