| <?xml version="1.0"?> |
| |
| <!-- CVS: $Id: usecase-edit.xmap,v 1.1 2003/08/05 19:50:47 michi Exp $ --> |
| |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| |
| <map:components> |
| <map:actions> |
| <map:action name="save-blog-entry" logger="sitemap.action.save-blog-entry" src="org.apache.lenya.cms.cocoon.acting.SaveBlogEntryAction" /> |
| </map:actions> |
| </map:components> |
| |
| <map:views /> |
| |
| <map:resources /> |
| |
| <map:pipelines> |
| |
| <map:pipeline> |
| <map:match pattern="edit" type="usecase"> |
| <map:match pattern="open" type="step"> |
| <map:match pattern="authoring/entries/**.html"> |
| <map:generate src="content/authoring/entries/{1}.xml"/> |
| <map:transform src="xslt/entry/editWithForms.xsl"> |
| <map:parameter name="entryid" value="{1}"/> |
| </map:transform> |
| <map:serialize type="html" /> |
| </map:match> |
| </map:match> |
| |
| <map:match pattern="close" type="step"> |
| <map:match pattern="authoring/entries/**/*.html"> |
| <map:act type="save-blog-entry"> |
| <map:parameter name="file" value="content/authoring/entries/{1}/{2}.xml"/> |
| <!-- FIXME: Error Message --> |
| <map:redirect-to uri="/lenya/index.html" /> |
| </map:act> |
| <map:redirect-to uri="{2}.html" /> |
| </map:match> |
| </map:match> |
| </map:match> |
| </map:pipeline> |
| |
| </map:pipelines> |
| </map:sitemap> |