Thanks for that!!

SourceWritingTransformer certainly seems to be what I am looking for.

So if I wanted to save for example a png file to the filesystem in 
the pipeline I would state:

<map:transform type="write-source">
       <map:parameter name="serializer" value="svg2png"/>
</map:transform>

Has anyone tested this, because I noticed in some comments about the 
SourceWritingTransformer on the Internet that it does not handle
namespaces resulting in invalid XML?

Thanks,
Jim




On Thu, 2003-10-09 at 08:28, Upayavira wrote:
> Check out the SourceWritingTransformer.
> 
> Regards, Upayavira
> 
> jim basilakis wrote:
> 
> >Hi,
> >
> >I am a cocoon newbie and I am using cocoon 2.0.4.
> >I came across the same problem of trying to save a jpeg/png file
> >to the filesystem as part of the course of a pipeline.
> >
> >Any hints as to how to save a generated file (eg. png) to the 
> >filesystem?
> >
> >Thanks,
> >Jim
> > 
> >
> >-----Original Message-----
> >From: Joose Vettenranta [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 8 October 2003 7:19 PM
> >To: [EMAIL PROTECTED]
> >Subject: svg2png dynamic static generation
> >
> >
> >Hey,
> >
> >because serializing svg to png is very slow, is it possible to do
> >somehow next:
> >
> >-> if picture-{id} exists -> map:read src="picture-{id}"
> >-> if not -> generate png file from svg and then save it to filesystem
> >and then show it.
> >
> >It would make things much faster.
> >
> >- Joose
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to