You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2002/04/21 20:57:52 UTC
cvs commit: xml-cocoon2/src/scratchpad/webapp/mount/xmlform sitemap.xmap
vgritsenko 02/04/21 11:57:52
Modified: src/scratchpad/webapp/mount/xmlform sitemap.xmap
Log:
reformat; add redirect to sample page
Revision Changes Path
1.4 +38 -42 xml-cocoon2/src/scratchpad/webapp/mount/xmlform/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/xmlform/sitemap.xmap,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sitemap.xmap 17 Apr 2002 17:59:15 -0000 1.3
+++ sitemap.xmap 21 Apr 2002 18:57:52 -0000 1.4
@@ -1,59 +1,55 @@
<?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:actions>
- <map:generators default="file"/>
- <map:transformers default="xslt">
+
+ <!-- =========================== Components ================================ -->
+ <map:components>
+ <map:actions>
+ <map:action name="WizardAction" src="org.apache.cocoon.samples.xmlform.WizardAction" 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>
+ </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: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: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"/>
-
+ <!-- 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:pipeline>
-
- </map:pipelines>
-
+ </map:match>
+ </map:pipeline>
+ </map:pipelines>
</map:sitemap>
<!-- end of file -->
----------------------------------------------------------------------
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