cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject RE: Input module chaining (Re: XML input module)
Date Wed, 09 Oct 2002 08:57:26 GMT
Quoting Piroumian Konstantin <KPiroumian@protek.com>:

> > From: Stefano Mazzocchi [mailto:stefano@apache.org] 
> > Quoting Jeff Turner <jefft@apache.org>:
> > 
> > > Ehm.. more code, less talk :)
> > 
> > Before you guys start coding something that looks like FS 
> > from 10 Km, please, 
> > make a formal votation by writing a small description of what 
> > you are trying to 
> > do. TIA
> 
> After learing what is the FS, I should say, that input modules are really
> good replacements for most of the actions and it's not FS, but a better
> approach for obtaining values to be used in sitemap attributes. When all the
> request, session input modules are implemented, we can deprecate all the
> actions that read a value (e.g. RequestParamAction, DOMReaderAction, etc.).
> Actions would be needed for setting values, though, but this can be easily
> done in the flow layer.
> 
> IMO, Input modules make sitemaps look shorter and more elegant. 
> Compare:
> 
> <!-- action version -->
>   <map:act type="request-param">
>     <map:generate src="..." />
>    <map:transform src="{stylesheet}.xsl" /> <!-- We get the stylesheet name
> from a request parameter -->
>   </map:act>
> 
> <!-- input module version -->
>     <map:generate src="..." />
>    <map:transform src="{request-param:stylesheet}.xsl" /> <!-- We get the
> stylesheet name from a request parameter -->

nononono you got me wrong here: FS was referred at using the complexity of 
XPath to obtain values from the environment. It works, but it might create too 
many contracts.

Talking about input-modules vs. actions, I can't agree more: I *don't* like 
actions and I try not to use them *ever*! I hate them! expecially the stupid 
jump-me-if-I-return-null markup which is not self-describing and it's a pain to 
maintain if you have nested actions.

But I totally agree: flow + input-modules make actions useless.

Just don't make input-modules too hard to use, ok?

-- 
Stefano Mazzocchi                       <stefano@apache.org>
------------------------------------------------------------


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


Mime
View raw message