You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by co...@apache.org on 2003/02/23 20:21:41 UTC

cvs commit: xml-cocoon2/src/webapp/samples/xmlform sitemap.xmap overview.html

coliver     2003/02/23 11:21:41

  Modified:    src/webapp/samples/xmlform sitemap.xmap overview.html
  Log:
  'Updated to support using the Cocoon flow layer with XMLForm'
  
  Revision  Changes    Path
  1.15      +39 -1     xml-cocoon2/src/webapp/samples/xmlform/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/xmlform/sitemap.xmap,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- sitemap.xmap	29 Nov 2002 07:21:42 -0000	1.14
  +++ sitemap.xmap	23 Feb 2003 19:21:41 -0000	1.15
  @@ -7,6 +7,9 @@
         <map:action name="WizardAction" src="org.apache.cocoon.samples.xmlform.WizardAction"  logger="xmlform.sitemap.action.wizard"/>
         <map:action name="UsageFeedbackAction" src="org.apache.cocoon.samples.xmlform.UsageFeedbackAction"  logger="xmlform.sitemap.action.UsageFeedback"/>
       </map:actions>
  +    <map:flow-interpreters default="JavaScript"/>
  +    <map:serializers default="html"/>
  +    <map:matchers default="wildcard"/>
     </map:components>
   
   
  @@ -36,6 +39,10 @@
     </map:resources>
   
     <!-- =========================== Pipelines ================================= -->
  +    <map:flow language="JavaScript">
  +      <map:script src="flow/feedbackWizard.js"/>
  +    </map:flow>
  +
     <map:pipelines> 
     
       <map:pipeline>
  @@ -49,6 +56,7 @@
         </map:match>
   
       </map:pipeline>
  +
     
       <map:pipeline>
   
  @@ -115,8 +123,38 @@
       </map:pipeline>
       
       
  -  </map:pipelines> 
     
  +    <map:pipeline>
  +
  +      <!-- The same application, using the Cocoon Flow Layer -->
  +
  +      <map:match pattern="flow">
  +        <map:call function="xmlForm">
  +          <map:parameter name="xml-form-function" value="feedbackWizard"/>
  +	  <map:parameter name="xml-form-id" value="form-feedback"/>
  +          <map:parameter name="xml-form-validator-schema-ns" value="http://www.ascc.net/xml/schematron"/>
  +          <map:parameter name="xml-form-validator-schema" value="schematron/wizard-xmlform-sch-report.xml"/>
  +        </map:call>
  +      </map:match>
  +
  +      <map:match pattern="flow/*.xml">
  +	      <!-- original XMLForm document -->
  +	      <map:generate src="flow/{1}.xml"/>
  +	      
  +	      <!-- populating the document with model instance data -->
  +	      <map:transform type="xmlform"  label="xml"/>
  +	
  +	      <!-- personalizing the look and feel of the form controls  -->
  +	      <map:transform type="xalan" src="stylesheets/wizard2html.xsl" />
  +	
  +	      <!-- Transforming the XMLForm controls to HTML controls -->
  +	      <map:transform src="context://samples/stylesheets/xmlform/xmlform2html.xsl" />
  +	      
  +	      <!-- sending the HTML back to the browser -->
  +	      <map:serialize type="html" label="debug"/>
  +	</map:match>	      
  +    </map:pipeline>
  +  </map:pipelines> 
     
   </map:sitemap>
   <!-- end of file -->
  
  
  
  1.6       +6 -0      xml-cocoon2/src/webapp/samples/xmlform/overview.html
  
  Index: overview.html
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/xmlform/overview.html,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- overview.html	16 Nov 2002 18:54:11 -0000	1.5
  +++ overview.html	23 Feb 2003 19:21:41 -0000	1.6
  @@ -33,6 +33,12 @@
   </p>
   
   <p>
  +<b><u>Flow-based Application</u></b>
  +<br>
  +Here is the <a href="flow">Flow-based XMLForm Cocoon Usage Feedback Wizard Demonstration</a>
  +</p>
  +
  +<p>
   <b><u>Web Service</u></b>
   <br>
   Here is the