Re: FlowControleAction

2002-06-18 Thread Ivelin Ivanov

So what happens when you have branching rules.
Depending on what was selected in a, go to be or jump straight to c?



Graaf, Edgar de (fin) wrote:
 That just to test it.
 it would have been better if I wrote something like:
 'page1,page2,page3'
 
 It is a sequence of pages. The flowshow.html starts with the use of a.xsp,
 when the command 'next' is used then
 b.xsp is used etc.
 I imaging that it might be handy in wizard like situations. When needed the
 sequence can be changed (with out the need to change an action).
 
 
 -Oorspronkelijk bericht-
 Van: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
 Verzonden: dinsdag 18 juni 2002 4:42
 Aan: [EMAIL PROTECTED]
 Onderwerp: Re: FlowControleAction
 
 
 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
titleB/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]


 
 
 



-- 

-= 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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: FlowControleAction

2002-06-18 Thread Graaf, Edgar de (fin)

 So what happens when you have branching rules.
 Depending on what was selected in a, go to be or jump straight to c?

I don't know exactly what you mean. First of all you don't have to use the
command next. You can use jump(2)

a b c
0 1 2

to jump right away to c.

(I still have to test this but) I imaging you can do the following:

map:match pattern=flowshow.html
map:act type=flowControler
  map:parameter name = flow value = fillInA,fillinB,fillinC/
map:redirect-to uri={nextpage}/
/map:act
map:redirect-to uri=flowerror.html/
/map:match

map:match pattern=fillinB
map:act type=flowControler
  map:parameter name = flow value = fillInA,fillinB1,fillinB2,fillinC/
  map:parameter name = start value = 1/
map:generate src={nextpage}.xsp/

.
.
.
/map:act
map:redirect-to uri=flowerror.html/
/map:match

of course when you don't skip fillinB in flowshow.html, then you go to the
fillinB pipeline.
  _choose2___
 ||
  ---fillInA --choose1-- fillInB fillInC  ---
| /\
\/|
   fillInB1 --fillInB2 

-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




FlowControleAction

2002-06-14 Thread Graaf, Edgar de (fin)

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
titleB/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]