cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Trigger Event from Woody on sitemap
Date Tue, 25 Nov 2003 18:21:18 GMT
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
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