You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by tc...@apache.org on 2002/03/26 00:24:51 UTC

cvs commit: xml-cocoon2/src/scratchpad/webapp/mount/precept/example2 i2html.xsl view1.xml

tcurdt      02/03/25 15:24:51

  Modified:    src/scratchpad/webapp/mount/precept sitemap.xmap
                        snippet.roles snippet.xconf
               src/scratchpad/webapp/mount/precept/example1 README
                        error.xml thanks.xml view1.xml view2.xml view3.xml
                        view4.xml
               src/scratchpad/webapp/mount/precept/example2 i2html.xsl
                        view1.xml
  Log:
  implemented example2
  
  Revision  Changes    Path
  1.2       +82 -72    xml-cocoon2/src/scratchpad/webapp/mount/precept/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/sitemap.xmap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sitemap.xmap	22 Mar 2002 17:46:40 -0000	1.1
  +++ sitemap.xmap	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,72 +1,82 @@
  -<?xml version="1.0"?>
  -
  -<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  -
  -  <map:components>
  -    <map:generators default="file"/>
  -    <map:transformers default="xslt">
  -      <map:transformer name="instance" src="org.apache.cocoon.precept.InstanceTransformer" logger="webapp.validation"/>
  -    </map:transformers>
  -    <map:actions>
  -      <map:action name="demoflow" src="org.apache.cocoon.precept.acting.PreceptorDemoAction" logger="webapp.validation"/>
  -    </map:actions>
  -    <map:readers default="resource"/>
  -    <map:serializers default="html"/>
  -    <map:selectors default="browser"/>
  -    <map:matchers default="wildcard"/>    
  -  </map:components>
  -
  -  <map:action-sets>
  -    <map:action-set name="demo">
  -       <map:act type="demoflow"/>
  -       <map:act type="demoflow" action="prev1">
  -         <map:parameter name="method" value="prev1"/>
  -       </map:act>
  -       <map:act type="demoflow" action="prev2">
  -         <map:parameter name="method" value="prev2"/>
  -       </map:act>
  -       <map:act type="demoflow" action="prev3">
  -         <map:parameter name="method" value="prev3"/>
  -       </map:act>
  -       <map:act type="demoflow" action="prev4">
  -         <map:parameter name="method" value="prev4"/>
  -       </map:act>
  -       <map:act type="demoflow" action="next2">
  -         <map:parameter name="method" value="next2"/>
  -       </map:act>
  -       <map:act type="demoflow" action="next3">
  -         <map:parameter name="method" value="next3"/>
  -       </map:act>
  -       <map:act type="demoflow" action="next4">
  -         <map:parameter name="method" value="next4"/>
  -       </map:act>
  -       <map:act type="demoflow" action="submit">
  -         <map:parameter name="method" value="submit"/>
  -       </map:act>
  -    </map:action-set>
  -  </map:action-sets>
  -
  -  <map:pipelines>
  -    <map:pipeline>
  -
  -      <map:match pattern="**.html">
  -        <map:act type="request">
  -
  -          <map:match pattern="app/**">
  -            <map:match pattern="**/demo.*">
  -              <map:act set="demo">
  -                <map:generate src="example1/{page}.xml"/>
  -                <map:transform type="instance"/>
  -                <map:transform src="example1/{page}.xsl"/>
  -                <map:serialize/>
  -              </map:act>
  -
  -            </map:match>
  -          </map:match>
  -
  -        </map:act>
  -      </map:match>
  -    </map:pipeline>
  -
  -  </map:pipelines>
  -</map:sitemap>
  +<?xml version="1.0"?>
  +
  +<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  +
  +  <map:components>
  +    <map:generators default="file"/>
  +    <map:transformers default="xslt">
  +      <map:transformer name="instance" src="org.apache.cocoon.precept.InstanceTransformer" logger="webapp.validation"/>
  +    </map:transformers>
  +    <map:actions>
  +      <map:action name="demoflow" src="org.apache.cocoon.precept.acting.PreceptorDemoAction" logger="webapp.validation"/>
  +    </map:actions>
  +    <map:readers default="resource"/>
  +    <map:serializers default="html"/>
  +    <map:selectors default="browser"/>
  +    <map:matchers default="wildcard"/>    
  +  </map:components>
  +
  +  <map:action-sets>
  +    <map:action-set name="demo">
  +       <map:act type="demoflow"/>
  +       <map:act type="demoflow" action="prev1">
  +         <map:parameter name="method" value="prev1"/>
  +       </map:act>
  +       <map:act type="demoflow" action="prev2">
  +         <map:parameter name="method" value="prev2"/>
  +       </map:act>
  +       <map:act type="demoflow" action="prev3">
  +         <map:parameter name="method" value="prev3"/>
  +       </map:act>
  +       <map:act type="demoflow" action="prev4">
  +         <map:parameter name="method" value="prev4"/>
  +       </map:act>
  +       <map:act type="demoflow" action="next2">
  +         <map:parameter name="method" value="next2"/>
  +       </map:act>
  +       <map:act type="demoflow" action="next3">
  +         <map:parameter name="method" value="next3"/>
  +       </map:act>
  +       <map:act type="demoflow" action="next4">
  +         <map:parameter name="method" value="next4"/>
  +       </map:act>
  +       <map:act type="demoflow" action="submit">
  +         <map:parameter name="method" value="submit"/>
  +       </map:act>
  +    </map:action-set>
  +  </map:action-sets>
  +
  +  <map:pipelines>
  +    <map:pipeline>
  +
  +      <map:match pattern="**.html">
  +        <map:act type="request">
  +
  +          <map:match pattern="app/**">
  +            <map:match pattern="**/example1.*">
  +              <map:act set="demo">
  +                <map:generate src="example1/{page}.xml"/>
  +                <map:transform type="instance"/>
  +                <map:transform src="example1/{page}.xsl"/>
  +                <map:serialize/>
  +              </map:act>
  +            </map:match>
  +          </map:match>
  +
  +          <map:match pattern="app/**">
  +            <map:match pattern="**/example2.*">
  +              <map:act set="demo">
  +                <map:generate src="example2/{page}.xml"/>
  +                <map:transform type="instance"/>
  +                <map:transform src="example2/i2html.xsl"/>
  +                <map:serialize/>
  +              </map:act>
  +            </map:match>
  +          </map:match>
  +
  +        </map:act>
  +      </map:match>
  +    </map:pipeline>
  +
  +  </map:pipelines>
  +</map:sitemap>
  
  
  
  1.2       +21 -21    xml-cocoon2/src/scratchpad/webapp/mount/precept/snippet.roles
  
  Index: snippet.roles
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/snippet.roles,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- snippet.roles	22 Mar 2002 17:46:40 -0000	1.1
  +++ snippet.roles	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,21 +1,21 @@
  -<?xml version="1.0" ?>
  -<role-list>
  -  <role name="org.apache.cocoon.precept.InstanceFactory"
  -       shorthand="instances"
  -       default-class="org.apache.cocoon.precept.InstanceFactory"/>
  - 
  -  <role name="org.apache.cocoon.precept.InstanceSelector"
  -       shorthand="instance-impl"
  -       default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector"
  -       default-hint="dom">
  -       <hint shorthand="dom" class="org.apache.cocoon.precept.stores.dom.simple.InstanceImpl"/>
  -       <hint shorthand="bean" class="org.apache.cocoon.precept.stores.bean.InstanceImpl"/>
  -  </role>
  - 
  -  <role name="org.apache.cocoon.precept.PreceptorBuilderSelector"
  -       shorthand="preceptor-impl"
  -       default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector"
  -       default-hint="easyrelax">
  -       <hint shorthand="easyrelax" class="org.apache.cocoon.precept.preceptors.easyrelax.PreceptorBuilderImpl"/>
  -  </role>
  -</role-list>
  +<?xml version="1.0" ?>
  +<role-list>
  +  <role name="org.apache.cocoon.precept.InstanceFactory"
  +       shorthand="instances"
  +       default-class="org.apache.cocoon.precept.InstanceFactory"/>
  + 
  +  <role name="org.apache.cocoon.precept.InstanceSelector"
  +       shorthand="instance-impl"
  +       default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector"
  +       default-hint="dom">
  +       <hint shorthand="dom" class="org.apache.cocoon.precept.stores.dom.simple.InstanceImpl"/>
  +       <hint shorthand="bean" class="org.apache.cocoon.precept.stores.bean.InstanceImpl"/>
  +  </role>
  + 
  +  <role name="org.apache.cocoon.precept.PreceptorBuilderSelector"
  +       shorthand="preceptor-impl"
  +       default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector"
  +       default-hint="easyrelax">
  +       <hint shorthand="easyrelax" class="org.apache.cocoon.precept.preceptors.easyrelax.PreceptorBuilderImpl"/>
  +  </role>
  +</role-list>
  
  
  
  1.2       +30 -30    xml-cocoon2/src/scratchpad/webapp/mount/precept/snippet.xconf
  
  Index: snippet.xconf
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/snippet.xconf,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- snippet.xconf	22 Mar 2002 17:46:40 -0000	1.1
  +++ snippet.xconf	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,30 +1,30 @@
  -
  -  <instance-impl>
  -    <component-instance name="dom" class="org.apache.cocoon.precept.stores.dom.simple.InstanceImpl" logger="webapp.validation"/>
  -    <component-instance name="bean" class="org.apache.cocoon.precept.stores.bean.InstanceImpl" logger="webapp.validation">
  -      <class mapping="file:/...">somwhere.my.bean</class>
  -    </component-instance>
  -  </instance-impl>
  -
  -  <preceptor-impl>
  -    <component-instance name="easyrelax" class="org.apache.cocoon.precept.preceptors.easyrelax.PreceptorBuilderImpl" logger="webapp.validation"/>
  -    <!--
  -    <component-instance name="relax-ng" class="..." logger="webapp.validation"/>
  -    <component-instance name="xsd" class="..." logger="webapp.validation"/>
  -    -->
  -  </preceptor-impl>
  -  
  -  <instances logger="webapp.validation">
  -    <instance name="empty" impl="dom"/>
  -    <instance name="feedback" impl="dom">
  -      <preceptor impl="easyrelax" uri="file:/D:/...../model/easyrelax.xml"/>
  -    </instance>
  -    <!--
  -    <instance name="form1" impl="dom">
  -      <preceptor impl="xsd" uri="..."/>
  -    </instance>
  -    <instance name="form2" impl="dom">
  -      <preceptor impl="relax-ng" uri="..."/>
  -    </instance>
  -    -->
  -  </instances>
  +
  +  <instance-impl>
  +    <component-instance name="dom" class="org.apache.cocoon.precept.stores.dom.simple.InstanceImpl" logger="webapp.validation"/>
  +    <component-instance name="bean" class="org.apache.cocoon.precept.stores.bean.InstanceImpl" logger="webapp.validation">
  +      <class mapping="file:/...">somwhere.my.bean</class>
  +    </component-instance>
  +  </instance-impl>
  +
  +  <preceptor-impl>
  +    <component-instance name="easyrelax" class="org.apache.cocoon.precept.preceptors.easyrelax.PreceptorBuilderImpl" logger="webapp.validation"/>
  +    <!--
  +    <component-instance name="relax-ng" class="..." logger="webapp.validation"/>
  +    <component-instance name="xsd" class="..." logger="webapp.validation"/>
  +    -->
  +  </preceptor-impl>
  +  
  +  <instances logger="webapp.validation">
  +    <instance name="empty" impl="dom"/>
  +    <instance name="feedback" impl="dom">
  +      <preceptor impl="easyrelax" uri="file:/D:/...../model/easyrelax.xml"/>
  +    </instance>
  +    <!--
  +    <instance name="form1" impl="dom">
  +      <preceptor impl="xsd" uri="..."/>
  +    </instance>
  +    <instance name="form2" impl="dom">
  +      <preceptor impl="relax-ng" uri="..."/>
  +    </instance>
  +    -->
  +  </instances>
  
  
  
  1.2       +3 -3      xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/README
  
  Index: README
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/README,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- README	22 Mar 2002 17:46:40 -0000	1.1
  +++ README	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,3 +1,3 @@
  -This example always inserts the full instance into the SAX stream and uses
  -the different stylesheets to display only parts of it.
  -
  +This example always inserts the full instance into the SAX stream and uses
  +the different stylesheets to display only parts of it.
  +
  
  
  
  1.2       +9 -9      xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/error.xml
  
  Index: error.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/error.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- error.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ error.xml	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,9 +1,9 @@
  -<?xml version="1.0" encoding="ISO-8859-1"?>
  -<root xmlns:f="http://www.dff.st/dform"
  -      xmlns:r="http://www.dff.st/drender"
  -      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  -      >
  -
  -   Sorry, submit failed
  -   
  -</root>
  +<?xml version="1.0" encoding="ISO-8859-1"?>
  +<root xmlns:f="http://www.dff.st/dform"
  +      xmlns:r="http://www.dff.st/drender"
  +      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  +      >
  +
  +   Sorry, submit failed
  +   
  +</root>
  
  
  
  1.2       +9 -9      xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/thanks.xml
  
  Index: thanks.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/thanks.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- thanks.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ thanks.xml	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,9 +1,9 @@
  -<?xml version="1.0" encoding="ISO-8859-1"?>
  -<root xmlns:f="http://www.dff.st/dform"
  -      xmlns:r="http://www.dff.st/drender"
  -      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  -      >
  -
  -   Successfully submitted your data!
  -   
  -</root>
  +<?xml version="1.0" encoding="ISO-8859-1"?>
  +<root xmlns:f="http://www.dff.st/dform"
  +      xmlns:r="http://www.dff.st/drender"
  +      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  +      >
  +
  +   Successfully submitted your data!
  +   
  +</root>
  
  
  
  1.2       +33 -33    xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view1.xml
  
  Index: view1.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view1.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- view1.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ view1.xml	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,33 +1,33 @@
  -<?xml version="1.0" encoding="ISO-8859-1"?>
  -<root xmlns:f="http://www.dff.st/dform"
  -      xmlns:r="http://www.dff.st/drender"
  -      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  -      >
  -
  -   <i:instance id="form-feedback"/>
  -   
  -   <!--
  -   <r:render>
  -      <f:label r:x="108" r:y="77" r:w="181" r:h="108">Name</f:label>
  -      <f:textbox ref="cocoon-user/name" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -      <f:textbox ref="cocoon-user/surname" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -      <f:textbox ref="cocoon-user/email" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -      <f:textbox ref="cocoon-user/age" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -      <f:textbox ref="cocoon-user/city" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -      <f:textbox ref="cocoon-user/zip" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -      <f:textbox ref="cocoon-user/number-of-projects" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -
  -      <f:selectOne ref="cocoon-user/position" preferred-presentation="combobox" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -
  -      <f:selectMany ref="cocoon-user/os" preferred-presentation="listbox" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -
  -      <f:selectBoolean ref="cocoon-user/like-it" preferred-presentation="checkbox" r:x="108" r:y="77" r:w="181" r:h="108"/>
  -
  -      <f:button method="next" r:x="108" r:y="77" r:w="181" r:h="108">
  -         <f:caption>Next Page</f:caption>
  -         <f:hint>Click here to get to next page</f:hint>
  -      </f:button>
  -
  -   </r:render>
  -   -->
  -</root>
  +<?xml version="1.0" encoding="ISO-8859-1"?>
  +<root xmlns:f="http://www.dff.st/dform"
  +      xmlns:r="http://www.dff.st/drender"
  +      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  +      >
  +
  +   <i:insert-instance id="form-feedback"/>
  +   
  +   <!--
  +   <r:render>
  +      <f:label r:x="108" r:y="77" r:w="181" r:h="108">Name</f:label>
  +      <f:textbox ref="cocoon-user/name" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +      <f:textbox ref="cocoon-user/surname" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +      <f:textbox ref="cocoon-user/email" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +      <f:textbox ref="cocoon-user/age" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +      <f:textbox ref="cocoon-user/city" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +      <f:textbox ref="cocoon-user/zip" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +      <f:textbox ref="cocoon-user/number-of-projects" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +
  +      <f:selectOne ref="cocoon-user/position" preferred-presentation="combobox" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +
  +      <f:selectMany ref="cocoon-user/os" preferred-presentation="listbox" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +
  +      <f:selectBoolean ref="cocoon-user/like-it" preferred-presentation="checkbox" r:x="108" r:y="77" r:w="181" r:h="108"/>
  +
  +      <f:button method="next" r:x="108" r:y="77" r:w="181" r:h="108">
  +         <f:caption>Next Page</f:caption>
  +         <f:hint>Click here to get to next page</f:hint>
  +      </f:button>
  +
  +   </r:render>
  +   -->
  +</root>
  
  
  
  1.2       +9 -9      xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view2.xml
  
  Index: view2.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view2.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- view2.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ view2.xml	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,9 +1,9 @@
  -<?xml version="1.0" encoding="ISO-8859-1"?>
  -<root xmlns:f="http://www.dff.st/dform"
  -      xmlns:r="http://www.dff.st/drender"
  -      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  -      >
  -
  -   <i:instance id="form-feedback"/>
  -   
  -</root>
  +<?xml version="1.0" encoding="ISO-8859-1"?>
  +<root xmlns:f="http://www.dff.st/dform"
  +      xmlns:r="http://www.dff.st/drender"
  +      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  +      >
  +
  +   <i:insert-instance id="form-feedback"/>
  +   
  +</root>
  
  
  
  1.2       +9 -9      xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view3.xml
  
  Index: view3.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view3.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- view3.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ view3.xml	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,9 +1,9 @@
  -<?xml version="1.0" encoding="ISO-8859-1"?>
  -<root xmlns:f="http://www.dff.st/dform"
  -      xmlns:r="http://www.dff.st/drender"
  -      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  -      >
  -
  -   <i:instance id="form-feedback"/>
  -   
  -</root>
  +<?xml version="1.0" encoding="ISO-8859-1"?>
  +<root xmlns:f="http://www.dff.st/dform"
  +      xmlns:r="http://www.dff.st/drender"
  +      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  +      >
  +
  +   <i:insert-instance id="form-feedback"/>
  +   
  +</root>
  
  
  
  1.2       +9 -9      xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view4.xml
  
  Index: view4.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example1/view4.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- view4.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ view4.xml	25 Mar 2002 23:24:50 -0000	1.2
  @@ -1,9 +1,9 @@
  -<?xml version="1.0" encoding="ISO-8859-1"?>
  -<root xmlns:f="http://www.dff.st/dform"
  -      xmlns:r="http://www.dff.st/drender"
  -      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  -      >
  -
  -   <i:instance id="form-feedback"/>
  -   
  -</root>
  +<?xml version="1.0" encoding="ISO-8859-1"?>
  +<root xmlns:f="http://www.dff.st/dform"
  +      xmlns:r="http://www.dff.st/drender"
  +      xmlns:i="http://www.dff.st/ns/desire/instance/1.0"
  +      >
  +
  +   <i:insert-instance id="form-feedback"/>
  +   
  +</root>
  
  
  
  1.2       +48 -1     xml-cocoon2/src/scratchpad/webapp/mount/precept/example2/i2html.xsl
  
  Index: i2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example2/i2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- i2html.xsl	22 Mar 2002 17:46:40 -0000	1.1
  +++ i2html.xsl	25 Mar 2002 23:24:51 -0000	1.2
  @@ -1 +1,48 @@
  -<?xml version="1.0" ?>
  +<?xml version="1.0" encoding="iso-8859-1" ?>
  +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:i="http://www.dff.st/ns/desire/instance/1.0">
  +   <xsl:template match="/">
  +      <html>
  +         <body>
  +         <form method="POST">
  +            <xsl:apply-templates />
  +         </form>
  +         </body>
  +      </html>
  +   </xsl:template>
  +
  +   <xsl:template match="i:textbox">
  +      <input name="{@ref}" type="textbox" value="{i:value/text()}" />
  +   </xsl:template>
  +
  +   <xsl:template match="i:password">
  +      <input name="{@ref}" type="password" value="{i:value/text()}" />
  +   </xsl:template>
  +
  +   <xsl:template match="i:selectBoolean">
  +      [<xsl:value-of select="i:value/text()"/>]
  +      <input name="{@ref}" type="checkbox" value="true">
  +        <xsl:if test="i:value/text() = 'true'">
  +          <xsl:attribute name="selected"/>
  +        </xsl:if>
  +      </input>
  +   </xsl:template>
  +
  +   <xsl:template match="i:selectOne">
  +   </xsl:template>
  +
  +   <xsl:template match="i:selectMany">
  +   </xsl:template>
  +
  +   <xsl:template match="i:button">
  +      <input name="cocoon-action-{@method}" type="submit" value="{i:caption/text()}" />
  +   </xsl:template>
  +
  +   <xsl:template match="*">
  +      <xsl:copy><xsl:copy-of select="@*" /><xsl:apply-templates /></xsl:copy>
  +   </xsl:template>
  +
  +   <xsl:template match="text()">
  +      <xsl:value-of select="." />
  +   </xsl:template>
  +</xsl:stylesheet>
  +
  
  
  
  1.2       +19 -13    xml-cocoon2/src/scratchpad/webapp/mount/precept/example2/view1.xml
  
  Index: view1.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/precept/example2/view1.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- view1.xml	22 Mar 2002 17:46:40 -0000	1.1
  +++ view1.xml	25 Mar 2002 23:24:51 -0000	1.2
  @@ -1,13 +1,19 @@
  -<?xml version="1.0" ?>
  -<root>
  -  <i:instance id="form-feedback">
  -    <i:textbox ref="cocoon-installation/user/firstname"/>
  -    <i:textbox ref="cocoon-installation/user/lastname"/>
  -    <i:textbox ref="cocoon-installation/user/email"/>
  -    <i:textbox ref="cocoon-installation/user/age"/>
  -  </i:instance>
  -
  -  <i:button method="next2">
  -    <i:caption>Next Page<i:caption>
  -  </i:button>
  -</root>
  +<?xml version="1.0" ?>
  +<root xmlns:i="http://www.dff.st/ns/desire/instance/1.0">
  +  <errors>
  +    <i:insert-violations/>
  +  </errors>
  +
  +  <i:instance id="form-feedback">
  +    <i:textbox ref="cocoon-installation/user/firstname"/>
  +    <i:textbox ref="cocoon-installation/user/lastname"/>
  +    <i:textbox ref="cocoon-installation/user/email"/>
  +  </i:instance>
  +
  +  <i:textbox ref="cocoon-installation/user/age" instance="form-feedback"/>
  +  
  +
  +  <i:button method="next2">
  +    <i:caption>Next</i:caption>
  +  </i:button>
  +</root>
  
  
  

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