forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/documentation/content/xdocs/community/howto/xmlform step1.xml step2.xml step4.xml step5.xml
Date Tue, 10 Jun 2003 10:39:38 GMT
jefft       2003/06/10 03:39:38

  Modified:    src/documentation/content/xdocs/community/howto/xmlform
                        step1.xml step2.xml step4.xml step5.xml
  Log:
  Break long lines so we don't get horizontal wrap (at least on my 17")
  
  Revision  Changes    Path
  1.4       +2 -1      xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step1.xml
  
  Index: step1.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step1.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- step1.xml	8 Jan 2003 05:44:33 -0000	1.3
  +++ step1.xml	10 Jun 2003 10:39:38 -0000	1.4
  @@ -42,7 +42,8 @@
                   <code>
                   The following form allows users to join mailing lists. 
                   They are given a choice of areas of interest. 
  -                Depending on their interests they will see a selection of mailing lists
which they can sign up to.
  +                Depending on their interests they will see a selection of
  +                mailing lists which they can sign up to.
                   </code>
               </td>
           </tr>
  
  
  
  1.4       +6 -3      xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step2.xml
  
  Index: step2.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step2.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- step2.xml	8 Jan 2003 05:44:33 -0000	1.3
  +++ step2.xml	10 Jun 2003 10:39:38 -0000	1.4
  @@ -18,8 +18,10 @@
         <p>In the sitemap there are 2 parameters, xmlform-validator-schema and xmlform-validator-schema-ns.
If these are left empty then no validation will be carried out. xmlform-validator-schema contains
the name of the xml schema file we are using and xmlform-validator-schema-ns is the validator
namespace we are using.  Below are the 2 parameters in the sitemap we are referring to.</p>
         <source>
         <![CDATA[
  -                <map:parameter name="xmlform-validator-schema-ns" value="http://www.ascc.net/xml/schematron"/>
  -          <map:parameter name="xmlform-validator-schema" value="schematron/wizard-xmlform-sch-report.xml"/>
  +<map:parameter name="xmlform-validator-schema-ns"
  +  value="http://www.ascc.net/xml/schematron"/>
  +<map:parameter name="xmlform-validator-schema"
  +  value="schematron/wizard-xmlform-sch-report.xml"/>
         ]]>    
         </source>
         <p>Copy the "howto-xmlform-sch-report.xml" and place this in the folder apache\xml-cocoon2\src\scratchpad\webapp\mount\xmlform\schematron.</p>
  @@ -38,7 +40,8 @@
   
   -->
   
  -<schema ns="http://xml.apache.cocoon/xmlform"  xmlns="http://www.ascc.net/xml/schematron">
  +<schema ns="http://xml.apache.cocoon/xmlform"
  +  xmlns="http://www.ascc.net/xml/schematron">
   
     <title>Schema for the XML Form example</title>
     
  
  
  
  1.4       +4 -3      xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step4.xml
  
  Index: step4.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step4.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- step4.xml	8 Jan 2003 05:44:33 -0000	1.3
  +++ step4.xml	10 Jun 2003 10:39:38 -0000	1.4
  @@ -305,7 +305,8 @@
       <source>
       <![CDATA[
   /*
  - * $Header: /home/cvspublic/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/samples/xmlform/HowtoWizardAction.java,
  + * $Header: /home/cvspublic/xml-cocoon2/src/scratchpad/src/org/apache
  + *     /cocoon/samples/xmlform/HowtoWizardAction.java,
    v 1.2 2002/05/09 07:26:07 ivelin Exp $
    * $Revision$
    * $Date$
  
  
  
  1.4       +98 -92    xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step5.xml
  
  Index: step5.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/community/howto/xmlform/step5.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- step5.xml	8 Jan 2003 05:44:33 -0000	1.3
  +++ step5.xml	10 Jun 2003 10:39:38 -0000	1.4
  @@ -43,16 +43,105 @@
         <p>We add to the pipeline the following tags:</p>
         <source>
           <![CDATA[
  +<!-- A non-trivial example - Feedback HowTo Wizard -->
  +<map:match pattern="howto-wizard.html">
  +  <map:act type="HowtoWizardAction">
  +
  +    <!-- XMLForm parameters for the AbstractXMLFormAction -->
  +    <map:parameter name="xmlform-validator-schema-ns" value="http://www.ascc.net/xml/schematron"/>
  +    <map:parameter name="xmlform-validator-schema" value="schematron/howto-xmlform-sch-report.xml"/>
  +    <map:parameter name="xmlform-id" value="form-feedback"/>
  +    <map:parameter name="xmlform-scope" value="session"/>
  +    <map:parameter name="xmlform-model" value="org.apache.cocoon.samples.xmlform.HowToBean"/>
  +
  +    <!-- Content transformation logic -->
  +    <map:generate src="howto/{page}.xml"/>
  +    <map:transform type="xmlform" label="xml"/>
  +    <map:transform src="stylesheets/wizard2html.xsl"/>
  +    <map:transform src="stylesheets/xmlform2html.xsl"/>
  +    <map:serialize type="html"/>
  +  </map:act>
  +</map:match>         
  +]]>
  +      </source>     
  +      <p>The whole sitemap.xmap is below so you can just copy this over your current
sitemap if you like. Your current sitemap is located in \apache\xml-cocoon2\src\scratchpad\webapp\mount\xmlform</p>
  +      <source>
  +      <![CDATA[
  +<?xml version="1.0"?>
  +<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  +
  +  <!-- =========================== Components ================================ -->
  +  <map:components> 
  +    <map:actions>
  +      <map:action name="WizardAction" src="org.apache.cocoon.samples.xmlform.WizardAction"
 
  +        logger="webapp.xmlform"/>
  +      <map:action name="HowtoWizardAction" src="org.apache.cocoon.samples.xmlform.HowtoWizardAction"
 
  +        logger="webapp.xmlform"/>
  +    </map:actions>
  +    <map:generators default="file"/>
  +    <map:transformers default="xslt">
  +      <map:transformer name="xmlform" src="org.apache.cocoon.transformation.XMLFormTransformer"

  +        logger="webapp.xmlform"/>
  +    </map:transformers>
  +    <map:readers default="resource"/>
  +    <map:serializers default="html"/>
  +    <map:selectors default="browser"/>
  +    <map:matchers default="wildcard">
  +      <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
  +    </map:matchers>
  +  </map:components>
  +
  +  <!-- =========================== Resources ================================= -->
  +  <map:resources>
  +  </map:resources>
  +
  +  <!-- =========================== Pipelines ================================= -->
  +  <map:pipelines> 
  +<map:pipeline>
  +      
  +      <map:match pattern="">
  +        <map:redirect-to uri="wizard.html"/>
  +      </map:match>
  +
  +      <!-- A non-trivial example - Feedback Wizard -->
  +      <map:match pattern="wizard.html">
  +        <map:act type="WizardAction">
  +
  +          <!-- XMLForm parameters for the AbstractXMLFormAction -->
  +          <map:parameter name="xmlform-validator-schema-ns"
  +            value="http://www.ascc.net/xml/schematron"/>
  +          <map:parameter name="xmlform-validator-schema"
  +            value="schematron/wizard-xmlform-sch-report.xml"/>
  +          <map:parameter name="xmlform-id" value="form-feedback"/>
  +          <map:parameter name="xmlform-scope" value="session"/>
  +          <map:parameter name="xmlform-model"
  +            value="org.apache.cocoon.samples.xmlform.UserBean"/>
  +
  +          <!-- Content transformation logic -->
  +          <map:generate src="wizard/{page}.xml"/>
  +          <map:transform type="xmlform" label="xml"/>
  +          <map:transform src="stylesheets/wizard2html.xsl"/>
  +          <map:transform src="stylesheets/xmlform2html.xsl"/>
  +          <map:serialize type="html"/>
  +        </map:act>
  +      </map:match>  
  +<map:match pattern="">
  +        <map:redirect-to uri="wizard.html"/>
  +      </map:match>
  +
         <!-- A non-trivial example - Feedback HowTo Wizard -->
         <map:match pattern="howto-wizard.html">
           <map:act type="HowtoWizardAction">
   
             <!-- XMLForm parameters for the AbstractXMLFormAction -->
  -          <map:parameter name="xmlform-validator-schema-ns" value="http://www.ascc.net/xml/schematron"/>
  -          <map:parameter name="xmlform-validator-schema" value="schematron/howto-xmlform-sch-report.xml"/>
  +          <map:parameter name="xmlform-validator-schema-ns"
  +            value="http://www.ascc.net/xml/schematron"/>
  +          <map:parameter name="xmlform-validator-schema"
  +            value="schematron/howto-xmlform-sch-report.xml"/>
             <map:parameter name="xmlform-id" value="form-feedback"/>
             <map:parameter name="xmlform-scope" value="session"/>
  -          <map:parameter name="xmlform-model" value="org.apache.cocoon.samples.xmlform.HowToBean"/>
  +          <map:parameter name="xmlform-model"
  +            value="org.apache.cocoon.samples.xmlform.HowToBean"/>
   
             <!-- Content transformation logic -->
             <map:generate src="howto/{page}.xml"/>
  @@ -61,95 +150,12 @@
             <map:transform src="stylesheets/xmlform2html.xsl"/>
             <map:serialize type="html"/>
           </map:act>
  -      </map:match>         
  -        ]]>
  -      </source>     
  -      <p>The whole sitemap.xmap is below so you can just copy this over your current
sitemap if you like. Your current sitemap is located in \apache\xml-cocoon2\src\scratchpad\webapp\mount\xmlform</p>
  -      <source>
  -      <![CDATA[
  -      <?xml version="1.0"?>
  -      <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  -      
  -        <!-- =========================== Components ================================
-->
  -        <map:components> 
  -          <map:actions>
  -            <map:action name="WizardAction" src="org.apache.cocoon.samples.xmlform.WizardAction"
 
  -              logger="webapp.xmlform"/>
  -            <map:action name="HowtoWizardAction" src="org.apache.cocoon.samples.xmlform.HowtoWizardAction"
 
  -              logger="webapp.xmlform"/>
  -          </map:actions>
  -          <map:generators default="file"/>
  -          <map:transformers default="xslt">
  -            <map:transformer name="xmlform" src="org.apache.cocoon.transformation.XMLFormTransformer"

  -              logger="webapp.xmlform"/>
  -          </map:transformers>
  -          <map:readers default="resource"/>
  -          <map:serializers default="html"/>
  -          <map:selectors default="browser"/>
  -          <map:matchers default="wildcard">
  -            <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
  -          </map:matchers>
  -        </map:components>
  -      
  -        <!-- =========================== Resources =================================
-->
  -        <map:resources>
  -        </map:resources>
  -      
  -        <!-- =========================== Pipelines =================================
-->
  -        <map:pipelines> 
  -          <map:pipeline>
  -      
  -            <map:match pattern="">
  -              <map:redirect-to uri="wizard.html"/>
  -            </map:match>
  -      
  -            <!-- A non-trivial example - Feedback Wizard -->
  -            <map:match pattern="wizard.html">
  -              <map:act type="WizardAction">
  -      
  -                <!-- XMLForm parameters for the AbstractXMLFormAction -->
  -                <map:parameter name="xmlform-validator-schema-ns" value="http://www.ascc.net/xml/schematron"/>
  -                <map:parameter name="xmlform-validator-schema" value="schematron/wizard-xmlform-sch-report.xml"/>
  -                <map:parameter name="xmlform-id" value="form-feedback"/>
  -                <map:parameter name="xmlform-scope" value="session"/>
  -                <map:parameter name="xmlform-model" value="org.apache.cocoon.samples.xmlform.UserBean"/>
  -      
  -                <!-- Content transformation logic -->
  -                <map:generate src="wizard/{page}.xml"/>
  -                <map:transform type="xmlform" label="xml"/>
  -                <map:transform src="stylesheets/wizard2html.xsl"/>
  -                <map:transform src="stylesheets/xmlform2html.xsl"/>
  -                <map:serialize type="html"/>
  -              </map:act>
  -            </map:match>  
  -      <map:match pattern="">
  -              <map:redirect-to uri="wizard.html"/>
  -            </map:match>
  -      
  -            <!-- A non-trivial example - Feedback HowTo Wizard -->
  -            <map:match pattern="howto-wizard.html">
  -              <map:act type="HowtoWizardAction">
  -      
  -                <!-- XMLForm parameters for the AbstractXMLFormAction -->
  -                <map:parameter name="xmlform-validator-schema-ns" value="http://www.ascc.net/xml/schematron"/>
  -                <map:parameter name="xmlform-validator-schema" value="schematron/howto-xmlform-sch-report.xml"/>
  -                <map:parameter name="xmlform-id" value="form-feedback"/>
  -                <map:parameter name="xmlform-scope" value="session"/>
  -                <map:parameter name="xmlform-model" value="org.apache.cocoon.samples.xmlform.HowToBean"/>
  -      
  -                <!-- Content transformation logic -->
  -                <map:generate src="howto/{page}.xml"/>
  -                <map:transform type="xmlform" label="xml"/>
  -                <map:transform src="stylesheets/wizard2html.xsl"/>
  -                <map:transform src="stylesheets/xmlform2html.xsl"/>
  -                <map:serialize type="html"/>
  -              </map:act>
  -            </map:match> 
  -          </map:pipeline>
  -        </map:pipelines> 
  -      </map:sitemap>
  -      <!-- end of file -->
  -      ]]>
  +      </map:match> 
  +    </map:pipeline>
  +  </map:pipelines> 
  +</map:sitemap>
  +<!-- end of file -->
  +]]>
         </source>
         <p>Congratulations! Now you have covered everything you need to create the
mailing list forms.  Now all you need to do is to build the files and then deploy them in
your web server.</p>
         <p>Use the command:</p>
  
  
  

Mime
View raw message