ivelin      02/04/17 11:37:23

  Added:       src/scratchpad/webapp/mount/xmlform/wizard README
                        confirm.xml deployment.xml end.xml start.xml
                        system.xml userIdentity.xml
  Log:
  XMLForm 0.9
  
  - Major Refactoring.
  - Proposed as base for Cocoon 2.1
  - Introduces an XForms (like) layer of Form content abstraction
  - Removed previous examples and demos to focus users on one usage pattern.
  - Introduced AbstractXMLFormAction which works together with Form and 
XMLFormTransformer
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/README
  
  Index: README
  ===================================================================
  This example use a more cleaner approach. The views are defined
  in XML and the stylesheet only renders into the desired media.
  Inserting of instance data will happen from within a transformer.
  
  
  
  1.1                  
xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/confirm.xml
  
  Index: confirm.xml
  ===================================================================
  <?xml version="1.0" ?>

<!-- 

       XMLForm instance document for the Cocoon 
Feedback Wizard.

     Original Author: Torsten Curdt, [EMAIL PROTECTED], March 2002
  
Author: Ivelin Ivanov, [EMAIL PROTECTED], April 2002

-->

<document 
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>


  <xf:form id="form-feedback" 
view="confirm" action="wizard.html">

  
    <xf:caption>Confirm Input</xf:caption>    


  
    <!-- from page1 -->

    <xf:output ref="/firstName">
        
<xf:caption>First Name</xf:caption>    
    </xf:output>

    <xf:output 
ref="/lastName">
        <xf:caption>Last Name</xf:caption>    
    </xf:output>

    
<xf:output ref="/email">
        <xf:caption>Email</xf:caption>    
    </xf:output>

 
   <xf:output ref="/age">
        <xf:caption>Age</xf:caption>
        <xf:violations 
class="error"/>
    </xf:output>


    <!-- from page2 -->
    
    <xf:output 
ref="/number">
        <xf:caption>Number of installations</xf:caption>    
    
</xf:output>

    <xf:output ref="/liveUrl">
        <xf:caption>Live URL</xf:caption> 
   
    </xf:output>

    <xf:output ref="/publish">
        <xf:caption>Publish 
URL</xf:caption>    
    </xf:output>
  
    
    <!-- from page3 -->


    <xf:output 
ref="/system/os">
        <xf:caption>OS</xf:caption>    
    </xf:output>

    
<xf:output ref="/system/processor">
        <xf:caption>Processor</xf:caption>    
    
</xf:output>

    <xf:output ref="/system/@ram">
        <xf:caption>RAM</xf:caption>  
  
    </xf:output>

    <xf:output ref="/system/servletEngine">
        
<xf:caption>Servlet Engine</xf:caption>    
    </xf:output>

    <xf:output 
ref="/system/javaVersion">
        <xf:caption>Java Version</xf:caption>    
    
</xf:output>
            
    
    <!-- submit -->
      
    <xf:submit id="prev" 
class="button">
      <xf:caption>Prev</xf:caption>
    </xf:submit>
    
    
<xf:submit id="next" class="button">
      <xf:caption>Finish</xf:caption>
    
</xf:submit>

  </xf:form>


  <xf:output ref="/count" id="show_count" 
form="form-feedback" class="info">
        <xf:caption>Visits Count</xf:caption>
  
</xf:output>
  
</document>
  
  
  1.1                  
xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/deployment.xml
  
  Index: deployment.xml
  ===================================================================
  <?xml version="1.0" ?>



<!-- 

     XMLForm instance document for the Cocoon 
Feedback Wizard.

     Original Author: Torsten Curdt, [EMAIL PROTECTED], March 2002
  
Author: Ivelin Ivanov, [EMAIL PROTECTED], April 2002

-->

<document 
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>

  <xf:form id="form-feedback" 
view="deployment" action="wizard.html">

    <xf:caption>Cocoon Deployment 
Information</xf:caption>    

    <error>
      <xf:violations class="error"/>
    
</error>
  
    <xf:textbox ref="/number">
        <xf:caption>Number of 
deployments</xf:caption>    
        <xf:violations class="error"/>
    </xf:textbox>

    <xf:textbox ref="/liveUrl">
        <xf:caption>Live URL</xf:caption>    
        
<xf:violations class="error"/>
    </xf:textbox>

    <xf:selectBoolean 
ref="/publish">
        <xf:caption>Publish</xf:caption>    
    </xf:selectBoolean>

 
   <xf:submit id="prev" class="button">
      <xf:caption>Prev</xf:caption>
    
</xf:submit>

    <xf:submit id="next" class="button">
      
<xf:caption>Next</xf:caption>
    </xf:submit>

  </xf:form>


  <xf:output 
ref="/count" id="show_count" form="form-feedback" class="info">
        
<xf:caption>Visits Count</xf:caption>
  </xf:output>
  
</document>


  
  
  1.1                  xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/end.xml
  
  Index: end.xml
  ===================================================================
  <?xml version="1.0" ?>
  <document>
      <br/><br/><br/>
      <table align="center" width="50%" cellspacing="20">
          <tr>
              <td align="center">
                  <h1>
                      Congratulations, Wizard Complete!
                  </h1>
              </td>
          </tr>
  
          <tr>
              <td align="center" class="info">
                  <code>
                      Your feedback form was processed successfully.
                  </code>
              </td>
          </tr>
           
          <tr>
              <td align="center">
                  <h3>
                      <a href="wizard.html">Go to home page.</a>
                  </h3>
              </td>
          </tr>
      </table>
  </document>
  
  
  
  
  1.1                  xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/start.xml
  
  Index: start.xml
  ===================================================================
  <?xml version="1.0" ?>
  
  <document>
      <br/><br/><br/>
      <table align="center" width="50%" cellspacing="20">
          <tr>
              <td align="center">
                  <h1>
                      Welcome !
                  </h1>
              </td>
          </tr>
  
          <tr>
              <td align="center" class="info">
                  <code>
                  This wizard will collect feedback information
                  for the     
                  <a href="http://xml.apache.org/cocoon";>Apache Cocoon</a>
                  project !
                  </code>
              </td>
          </tr>
           
          <tr>
              <td align="center">
                  <h3>
                      <a href="wizard.html?cocoon-action-start=true">
                          Start!
                      </a>
                  </h3>
              </td>
          </tr>
      </table>
  </document>
  
  
  
  1.1                  
xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/system.xml
  
  Index: system.xml
  ===================================================================
  <?xml version="1.0" ?>



<!-- 

     XMLForm instance document for the Cocoon 
Feedback Wizard.

     Original Author: Torsten Curdt, [EMAIL PROTECTED], March 2002
  
Author: Ivelin Ivanov, [EMAIL PROTECTED], April 2002

-->

<document 
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>


  <xf:form id="form-feedback" 
view="system" action="wizard.html">

    <xf:caption>System Information</xf:caption>   
 
  
    <error>
      <xf:violations class="error"/>
    </error>
  
    
<xf:selectOne ref="/system/os">
        <xf:caption>OS</xf:caption>
        <xf:item 
id="unix">
            <xf:caption>Unix/Linux</xf:caption>
            
<xf:value>Unix</xf:value>
        </xf:item>
        <xf:item id="mac">
            
<xf:caption>Mac OS/X</xf:caption>
            <xf:value>Mac OS/X</xf:value>
        
</xf:item>
        <xf:item id="win">
            <xf:caption>Windows 
95/98/NT/2000</xf:caption>
            <xf:value>Windows</xf:value>
        </xf:item>
        <xf:item id="other">
            <xf:caption>Other</xf:caption>
            
<xf:value>Other</xf:value>
        </xf:item>
    </xf:selectOne>

    <xf:selectOne 
ref="/system/processor">
        <xf:caption>Processor</xf:caption>    
        
<xf:item>
            <xf:caption>AMD/Athlon</xf:caption>
            
<xf:value>Athlon</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>AMD/Duron</xf:caption>
            <xf:value>Duron</xf:value>
        
</xf:item>
        <xf:item>
            <xf:caption>Pentium Celeron</xf:caption>
     
       <xf:value>Celeron</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>Pentium III</xf:caption>
            <xf:value>p3</xf:value>
        
</xf:item>
        <xf:item>
            <xf:caption>Pentium IV</xf:caption>
          
  <xf:value>p4</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>Other</xf:caption>
            <xf:value>other</xf:value>
        
</xf:item>
    </xf:selectOne>

    <xf:textbox ref="/system/@ram">
        
<xf:caption>RAM</xf:caption>    
        <xf:violations class="error"/>
    
</xf:textbox>

    <xf:selectOne ref="/system/servletEngine">
        
<xf:caption>Servlet Engine</xf:caption>    
        <xf:item>
            
<xf:caption>Tomcat</xf:caption>
            <xf:value>Tomcat</xf:value>
        
</xf:item>
        <xf:item>
            <xf:caption>Jetty</xf:caption>
            
<xf:value>Jetty</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>Resin</xf:caption>
            <xf:value>Resin</xf:value>
        
</xf:item>
        <xf:item>
            <xf:caption>Weblogic</xf:caption>
            
<xf:value>weblogic</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>WebSphere</xf:caption>
            <xf:value>WebSphere</xf:value>
        
</xf:item>
        <xf:item>
            <xf:caption>Other</xf:caption>
            
<xf:value>other</xf:value>
        </xf:item>
    </xf:selectOne>

    <xf:selectOne 
ref="/system/javaVersion">
        <xf:caption>Java Version</xf:caption>    
        
<xf:item>
            <xf:caption>1.1</xf:caption>
            
<xf:value>1.1</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>1.2</xf:caption>
            <xf:value>1.2</xf:value>
        </xf:item>
  
      <xf:item>
            <xf:caption>1.3</xf:caption>
            
<xf:value>1.3</xf:value>
        </xf:item>
        <xf:item>
            
<xf:caption>1.4</xf:caption>
            <xf:value>1.4</xf:value>
        </xf:item>
  
      <xf:item>
            <xf:caption>Other</xf:caption>
            
<xf:value>Other</xf:value>
        </xf:item>
    </xf:selectOne>

    <xf:submit 
id="prev" class="button">
      <xf:caption>Prev</xf:caption>
    </xf:submit>

    
<xf:submit id="next" class="button">
      <xf:caption>Next</xf:caption>
    
</xf:submit>

  </xf:form>


  <xf:output ref="/count" id="show_count" 
form="form-feedback" class="info">
        <xf:caption>Visits Count</xf:caption>
  
</xf:output>
  
</document>
  
  
  1.1                  
xml-cocoon2/src/scratchpad/webapp/mount/xmlform/wizard/userIdentity.xml
  
  Index: userIdentity.xml
  ===================================================================
  <?xml version="1.0" ?>


<!-- 

      XMLForm instance document for the Cocoon 
Feedback Wizard.

     Original Author: Torsten Curdt, [EMAIL PROTECTED], March 2002
  
Author: Ivelin Ivanov, [EMAIL PROTECTED], April 2002

-->

<document 
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>


  <xf:form id="form-feedback" 
view="userIdentity" action="wizard.html">

    <xf:caption>Personal 
Information</xf:caption>    

    <error>
      <xf:violations class="error"/>
    
</error>
  
    <xf:textbox ref="/firstName">
        <xf:caption>First 
Name</xf:caption>    
        <xf:violations class="error"/>
    </xf:textbox>

    
<xf:textbox ref="/lastName">
        <xf:caption>Last Name</xf:caption>    
        
<xf:violations class="error"/>
    </xf:textbox>

    <xf:textbox ref="/email">
       
 <xf:caption>Email</xf:caption>    
        <xf:violations class="error"/>
    
</xf:textbox>

    <xf:textbox ref="/age">
        <xf:caption>Age</xf:caption>
       
 <xf:violations class="error"/>
    </xf:textbox>

    <xf:submit id="next" 
class="button"> 
      <xf:caption>Next</xf:caption>
    </xf:submit>

  </xf:form>


 
 <xf:output ref="/count" id="show_count" form="form-feedback" class="info">
        
<xf:caption>Visits Count</xf:caption>
  </xf:output>
  
</document>


  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to