cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/matching RequestParamMatcher.java
Date Wed, 11 Jul 2001 09:30:42 GMT
haul        01/07/11 02:30:42

  Modified:    src/org/apache/cocoon/selection
                        ParameterSelectorFactory.java
               src/org/apache/cocoon/matching RequestParamMatcher.java
  Log:
  minor documentation changes
  
  Revision  Changes    Path
  1.2       +14 -12    xml-cocoon2/src/org/apache/cocoon/selection/ParameterSelectorFactory.java
  
  Index: ParameterSelectorFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/selection/ParameterSelectorFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParameterSelectorFactory.java	2001/05/09 20:49:28	1.1
  +++ ParameterSelectorFactory.java	2001/07/11 09:30:39	1.2
  @@ -20,25 +20,27 @@
    * This class generates source code to implement a selector that
    * matches a string in the parameters object passed to it.
    *
  - *  <map:selector name="parameter" factory="org.apache.cocoon.selection.ParameterSelectorFactory"/>
  + * <pre>
  + *  &lt;map:selector name="parameter" factory="org.apache.cocoon.selection.ParameterSelectorFactory"/&gt;
    *
  - *   <map:select type="parameter">
  - *      <parameter name="parameter-selector-test" value="{$mySitemapParameter}"/>
  - *      <map:when test="myParameterValue">
  - *         <!-- executes iff {$mySitemapParameter} == "myParameterValue" -->
  - *         <map:transform src="stylesheets/page/uk.xsl"/>
  - *      </map:when>
  - *      <map:otherwise>
  - *         <map:transform src="stylesheets/page/us.xsl"/>
  - *      </map:otherwise>
  - *   </map:select>
  + *   &lt;map:select type="parameter"&gt;
  + *      &lt;parameter name="parameter-selector-test" value="{$mySitemapParameter}"/&gt;
  + *      &lt;map:when test="myParameterValue"&gt;
  + *         &lt;!-- executes iff {$mySitemapParameter} == "myParameterValue" --&gt;
  + *         &lt;map:transform src="stylesheets/page/uk.xsl"/&gt;
  + *      &lt;/map:when&gt;
  + *      &lt;map:otherwise&gt;
  + *         &lt;map:transform src="stylesheets/page/us.xsl"/&gt;
  + *      &lt;/map:otherwise&gt;
  + *   &lt;/map:select&gt;
  + * </pre>
    *
    * The purpose of this selector is to allow an action to set parameters
    * and to be able to select between different pipeline configurations
    * depending on those parameters.
    *
    * @author <a href="mailto:leo.sutic@inspireinfrastructure.com">Leo Sutic</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2001/05/09 20:49:28 $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/07/11 09:30:39 $
    */
   public class ParameterSelectorFactory implements CodeFactory {
   
  
  
  
  1.4       +7 -6      xml-cocoon2/src/org/apache/cocoon/matching/RequestParamMatcher.java
  
  Index: RequestParamMatcher.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/matching/RequestParamMatcher.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RequestParamMatcher.java	2001/05/31 17:38:32	1.3
  +++ RequestParamMatcher.java	2001/07/11 09:30:41	1.4
  @@ -26,14 +26,15 @@
    * If the specified request parameter exists, its value is retrieved for later
    * xpath substitution.
    *
  - * Example:
  + * <p><b>Example:</b></p>
  + * <pre>
  + * &lt;map:match type="request" pattern="dest"&gt;
  + *     &lt;map:redirect-to uri="{1}"/&gt;
  + * &lt;/map:match&gt;
  + * </pre>
    *
  - * <map:match type="request" pattern="dest">
  - *     <map:redirect-to uri="{1}"/>
  - * </map:match>
  - *
    * @author <a href="mailto:Marcus.Crafter@osa.de">Marcus Crafter</a>
  - * @version CVS $Revision: 1.3 $
  + * @version CVS $Revision: 1.4 $
    */
   public class RequestParamMatcher implements Matcher {
       /**
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message