You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by mp...@apache.org on 2004/04/09 13:01:35 UTC
cvs commit: cocoon-2.1/src/blocks/forms/samples sitemap.xmap
mpo 2004/04/09 04:01:35
Modified: src/blocks/forms/samples sitemap.xmap
Log:
Transparently allowing for some samples to have specific styling.
(the aggregate sample needs this)
Revision Changes Path
1.7 +18 -6 cocoon-2.1/src/blocks/forms/samples/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/samples/sitemap.xmap,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- sitemap.xmap 18 Mar 2004 21:04:40 -0000 1.6
+++ sitemap.xmap 9 Apr 2004 11:01:34 -0000 1.7
@@ -387,17 +387,29 @@
<map:redirect-to uri="binding-{1}-JS.flow" />
</map:match>
- <map:match pattern="binding.form">
- <map:generate type="forms">
- <map:parameter name="form-action" value="#\{$continuation/id}.continue" />
- </map:generate>
- <!--TODO: fix xsl for use with FormGenerator -->
+ <map:match pattern="binding.form.*">
+ <map:select type="resource-exists" >
+ <map:when test="forms/binding/{1}-template.xml">
+ <map:generate type="file" src="forms/binding/{1}-template.xml" />
+ <map:transform type="forms" >
+ <map:parameter name="form-action" value="{flow-continuation:id}.continue" />
+ <map:parameter name="form-method" value="POST" />
+ </map:transform>
+ </map:when>
+ <map:otherwise>
+ <map:generate type="forms">
+ <map:parameter name="form-action" value="{flow-continuation:id}.continue" />
+ <map:parameter name="form-method" value="POST" />
+ </map:generate>
+ </map:otherwise>
+ </map:select>
+
<map:transform src="resources/forms-samples-styling.xsl" />
<map:serialize type="html" />
</map:match>
<map:match pattern="binding.done">
- <map:generate type="jx" src="forms/binding/done.jx"/> <!-- generic dump of flow env via jx? -->
+ <map:generate type="jx" src="forms/binding/done.jx"/> <!-- generic dump of flow data via jx? -->
<map:call resource="simple-page2html">
<map:parameter name="file" value="forms/binding/done.jx"/>
</map:call>