cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alten, Jelle Paul (sds-sp)" <jelle.paul.al...@ordina.nl>
Subject RE: Woody proposals: default parameter value
Date Thu, 06 Nov 2003 16:02:19 GMT
Hi Carmona,

no text is shown in bold, since the email is converted to just ascii on this
side of the world (or at least in my puter) and all text formatting is gone.
Can you resend the message and mark the lines in a different way? Preferably
not italic ;)

Jelle

-----Oorspronkelijk bericht-----
Van: Carmona Perez, David [mailto:DPerezCar@fcc.es]
Verzonden: donderdag 6 november 2003 16:33
Aan: users@cocoon.apache.org
Onderwerp: Woody proposals: default parameter value


Another proposal for Woody:

Give a default value for the "atribute-name" parameter.  In this way there
wouldn't be for most cases any need to specify the lines marked as bold:


<map:match pattern="registration">
  <map:select type="request-method">
    <map:when test="GET">
      <map:act type="woody-make-form">
        <map:parameter name="form-definition"
value="forms/registration.xml"/>
        <map:parameter name="attribute-name" value="registrationform"/>
      </map:act>
    </map:when>
    <map:otherwise>
      <map:act type="woody-handle-form-submit">
        <map:parameter name="form-definition"
value="forms/registration.xml"/>
        <map:parameter name="attribute-name" value="registrationform"/>
        <map:generate type="serverpages"
src="forms/registration_success.xsp"/>
        <map:serialize/>
      </map:act>
    </map:otherwise>
  </map:select>

  <map:generate src="forms/registration_template.xml"/>
  <map:transform type="woody">
    <map:parameter name="attribute-name" value="registrationform"/>
  </map:transform>
  <map:transform type="i18n">
    <map:parameter name="locale" value="en-US"/>
  </map:transform>
  <map:transform src="resources/woody-samples-styling.xsl"/>
  <map:transform type="i18n">
    <map:parameter name="locale" value="en-US"/>
  </map:transform>
  <map:serialize/>
</map:match>


They could easily be overriden for special cases.


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

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


Mime
View raw message