On Tue, 2003-11-25 at 11:05, Katharina Weimer wrote: > Hi there, > > has anybody an idea, how the javascript has to look like to trigger an event > from an action widget on a pipeline in a sitemap? > > My action widget looks like this: > > <wd:action id="getSVG" action-command="getSVG"> > <wd:label>Get SVG</wd:label> > <wd:on-action> > <javascript> > Code to trigger event on part of the sitemap below > </javascript> > </wd:on-action> > </wd:action> > > > And the pipeline that should be invoked: > > <map:pipeline> > <map:match pattern="project001"> > <map:aggregate element="sys"> > <map:part src="cocoon:/instance"/> > <map:part src="cocoon:/pins"/> > <map:part src="cocoon:/segment_vertex"/> > <map:part src="cocoon:/text"/> > <map:part src="cocoon:/document"/> > </map:aggregate> > <map:transform src="TEST/xsl/samples/final_svg.xsl"/> > <map:serialize type="svgxml"/> > </map:match> > </map:pipeline> > > It would be great, if anyone could give me a hint!
I think cocoon.processPipelineTo() does what you need. see the FOM docs: http://cocoon.apache.org/2.1/userdocs/flow/api.html -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
