cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Flow's processePipelineTo inside a Transformer?
Date Tue, 25 Nov 2003 18:28:56 GMT
On Mon, 2003-11-24 at 22:47, Sebastian Klamar wrote:
> I want to add some information to <img> links inside a document.  In my
> special case this information is the size of the image.  The difficult
> thing is that it's not the current (static) file size of the image.
> Instead of the image has to be processed by a Reader (transforms JPEGs
> into WBMPs, makes resizing etc.), so the image size is varying.  So the
> image has to be processed by Cocoon before you can calculate the size.
> 
> Now my question to you.  How can I aquire the information in question
> inside the transformer?  With Flow's processPipelineTo() you can process
> a dummy request, but only inside a flow script :-(  How can I combine
> SAX processing of a transformer with the control flow processing like
> Flow's processPipelineTo()?

If you're writing a custom transformer, you can use the SourceResolver
to resolve a cocoon: URL, which is similar to the processPipelineTo in
flowscript.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Mime
View raw message