You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Graaf, Edgar de (fin)" <Ed...@ordina.nl> on 2002/06/14 17:03:21 UTC

FlowControleAction

Is there someone who might be interested in the following:

<map:match pattern="flowshow.html">
 <map:act type="flowControler">
  <map:parameter name = "flow" value = "a,b, c;d"/>
  <map:generate src="{nextpage}.xsp"/>
  <map:transform src="simple-page2html.xsl"/>
  <map:serialize/>
 </map:act>
 <map:redirect-to uri="flowerror.html"/>
</map:match>

For example: b.xsp
==================

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page language="java"
		xmlns:xsp="http://apache.org/xsp">
<page>
<title>B</title>
<form action="flowshow.html">
 <button label="Jump to A" command="jump(1)"/>
 <button label="Jump to C" command="jump(3)"/>
 <button label="Jump to D" command="jump(4)"/>
 <hr/>
 <button label="Prev" command="prev"/>
 <button label="Next" command="next"/>
 <button label="Start" command="Start"/>
 <button label="End" command="end"/>
</form>
</page>
</xsp:page>

The flow of xsp pages is set in the flow parameter. Pages are seperated with
a , or ;
You can jump to some position in the flow or you can just follow the flow
with prev or next. 

Finally you can use start and end.

I am thinking about giving it to the community, but only if people are
interested. Because maybe you got something better or nobody wants to use
it...

regards,

Edgar




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: FlowControleAction

Posted by Ivelin Ivanov <iv...@apache.org>.
What is the semantics of

"a,b, c;d" ?


Ivelin



Graaf, Edgar de (fin) wrote:
> Is there someone who might be interested in the following:
> 
> <map:match pattern="flowshow.html">
>  <map:act type="flowControler">
>   <map:parameter name = "flow" value = "a,b, c;d"/>
>   <map:generate src="{nextpage}.xsp"/>
>   <map:transform src="simple-page2html.xsl"/>
>   <map:serialize/>
>  </map:act>
>  <map:redirect-to uri="flowerror.html"/>
> </map:match>
> 
> For example: b.xsp
> ==================
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <xsp:page language="java"
> 		xmlns:xsp="http://apache.org/xsp">
> <page>
> <title>B</title>
> <form action="flowshow.html">
>  <button label="Jump to A" command="jump(1)"/>
>  <button label="Jump to C" command="jump(3)"/>
>  <button label="Jump to D" command="jump(4)"/>
>  <hr/>
>  <button label="Prev" command="prev"/>
>  <button label="Next" command="next"/>
>  <button label="Start" command="Start"/>
>  <button label="End" command="end"/>
> </form>
> </page>
> </xsp:page>
> 
> The flow of xsp pages is set in the flow parameter. Pages are seperated with
> a , or ;
> You can jump to some position in the flow or you can just follow the flow
> with prev or next. 
> 
> Finally you can use start and end.
> 
> I am thinking about giving it to the community, but only if people are
> interested. Because maybe you got something better or nobody wants to use
> it...
> 
> regards,
> 
> Edgar
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 



-- 

-= Ivelin =-


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>