cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/documentation/xdocs/userdocs/generators request-generator.xml
Date Thu, 08 Aug 2002 13:19:47 GMT
cziegeler    2002/08/08 06:19:47

  Modified:    src/documentation/xdocs/userdocs/generators
                        request-generator.xml
  Log:
  Applying docu patch for request generator from Ilya A. Kriveshko [ilya@kaon.com]
  
  Revision  Changes    Path
  1.3       +35 -0     xml-cocoon2/src/documentation/xdocs/userdocs/generators/request-generator.xml
  
  Index: request-generator.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/generators/request-generator.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- request-generator.xml	5 Feb 2002 01:46:44 -0000	1.2
  +++ request-generator.xml	8 Aug 2002 13:19:47 -0000	1.3
  @@ -27,6 +27,7 @@
   ]]></source>
               <p>The output has the following schema. All elements have the namespace
                  <code>http://xml.apache.org/cocoon/requestgenerator/2.0</code></p>
  +
   <source><![CDATA[
   <?xml version="1.0" encoding="UTF-8"?>
   
  @@ -58,6 +59,15 @@
       </parameter>
     </requestParameters>
   
  +  <!-- All request attributes; see below the note on generate-attributes parameter.
-->
  +  <requestAttributes>
  +    <!-- Create an attribute element for each attribute -->
  +    <attribute name="errorMessage">
  +      <!-- Create a value element for the attribute value -->
  +      <value>I was put here by an earlier action.</value>
  +    </attribute>
  +  </requestAttributes>
  +
     <!-- All configuration parameters: -->
     <configurationParameters>
       <!-- Create a parameter element for each parameter specified 
  @@ -67,6 +77,31 @@
   
   </request>
   ]]></source>
  +
  +
  +            <note>If you want request attributes to be generated, you must specify
<code>generate-attributes</code> parameter at generator definition or invocation
in the sitemap.</note>
  +<source><![CDATA[
  +<!-- This will turn on attribute generation on by default -->
  +<map:generator name="request" src="org.apache.cocoon.generation.RequestGenerator">

  +    <map:parameter name="generate-attributes" value="true"/>
  +</map:generator>
  +
  +<!-- or -->
  +
  +    <!-- This will turn on attribute generation for this invocation only. -->
  +    <map:match pattern="request">
  +        <map:generate type="request">
  +	    <map:parameter name="generate-attributes" value="true"/>
  +        </map:generate>
  +    </map:match>
  +
  +
  +]]></source>
           </s1>
       </body>
   </document>
  +
  +
  +
  +
  +
  
  
  

----------------------------------------------------------------------
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