cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject actions and aggregation
Date Mon, 05 Feb 2001 14:08:33 GMT
Following the action and aggregation discussion...
...is this a resonable approach for a page
with two forms in it?

  <map:action-set name="order-form">
   <map:act type="form-reader/">
   <map:act type="form-validator/">
   <map:act type="form-selector/">
  </map:action-set>

  <map:action-set name="login-form">
   <map:act type="form-reader"/>
   <map:act type="form-validator"/>
   <map:act type="form-selector"/>
  </map:action-set>

  <map:match pattern="form/order.*">
     <map:generate type="serverpages" src="navigation.xml"/>

     <map:act set="order-form">
       <map:generate type="serverpages" src="forms/{next-form}.xml"/>
     </map:act>

     <map:act set="login-form">
       <map:generate type="serverpages" src="forms/{next-form}.xml"/>
     </map:act>

     <map:transform src="aggregate2layout.xsl"/>
     <map:transform src="xml2{1}.xsl"/>
     <map:serialize/>
  </map:match>

I know a parameter can be passed to an action as
child node:

   <map:act type="form-reader">
      <param>theParam</param>
   </map:act>

If this parameter applies to all actions of
an action-set why not having a parameter node
below the action-set node?
Can it be a child node from the action-set and
in a consequence of this be a parameter to all
actions within this set? But how can this parameter
then be accessed?

  <map:action-set name="login-form">
   <param>theParam</param>
   <map:act type="form-reader"/>
   <map:act type="form-validator"/>
   <map:act type="form-selector"/>
  </map:action-set>

equals

  <map:action-set name="login-form">
   <map:act type="form-reader">
      <param>theParam</param>
   </map:act>
   <map:act type="form-validator">
      <param>theParam</param>
   </map:act>
   <map:act type="form-selector">
      <param>theParam</param>
   </map:act>
  </map:action-set>

Is there already more documentation on the
sitemap/action semantics other than
the xdocs/sitemap.xml?
--
Torsten


Mime
View raw message