cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
Subject Re: [RT] SpitScript - B-Logic that doesn't suck ( Re: [RT] Flowmaps)
Date Tue, 25 Jun 2002 16:00:26 GMT
Stefano Mazzocchi wrote:

> Sure. I tried and I *HATED* the fact that in order to do something as
> simple as
> 
>  if (request.blah < 0)
>    call("error.html", request.blah);
>  else 
>    call("result.html", request.blah);
> 
> I have to write a 'ComparingSelector' and then use it like this
> 
>  <map:act type="request">
>   <map:select type="compare">
>    <map:when test="{blah} &lt; 0">
>     <map:call uri="cocoon:error.html">
>      <map:parameter name="blah" value="{blah}"/>
>     </map:call>
>    <map:when>
>    <map:otherwise>
>     <map:call uri="cocoon:result.html">
>      <map:parameter name="blah" value="{blah}"/>
>     </map:call>
>    </map:otherwise>
>   </map:select>
>  </map:act>
> 
> Even without continuations, the flowscript *alone* would make actions
> look a preistorical obsession for the XML syntax.

Don't laugh, but many are really obsessed with XML syntax, up to the 
point of creating a "general purpose programming language based on XML" 
[1]. I'm not sure whether to laugh or to cry.

> Sure, where is it? Are you planning to donate one to us?
> 
> I'm not skeptical about visual tools that exist (gosh, I love GUIs!).
> I'm skeptical about 'visual tools' that are possible but don't exist,
> nor are freely available for us to play with, enhance and control.

Something is starting to appear, see [2]. It's not going to be free, though.

> And today, between writing FSM tables using XML trees or writing
> procedural flow using a scripting language, I choose the second, each
> and every day of my life.

Ditto.

	Ugo

[1]: 
http://www.topxml.com/snippetcentral/main.asp?view=viewsnippet&lang=xml&id=v20020624075127
[2]: 
http://radio.weblogs.com/0108489/stories/2002/05/24/sunbowPlugInDocumentation.html


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message