oscom-lenya-notimes/pubs/notimes usecase.xmap,NONE,1.1

Andreas Hartmann <[email protected]> Mon, 19 May 2003 17:23:05 +0200
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/oscom-lenya-notimes/pubs/notimes
In directory erbium:/tmp/cvs-serv31661/pubs/notimes

Added Files:
	usecase.xmap 
Log Message:
added usecase sitemap

--- NEW FILE: usecase.xmap ---
<?xml version="1.0"?>

<!-- CVS: $Id: usecase.xmap,v 1.1 2003/05/19 15:23:02 andreas Exp $ -->

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

  <map:components>
    <map:generators default="file">
    </map:generators>
    <map:matchers default="wildcard">
      <map:matcher name="lenya-usecase" logger="sitemap.matcher.wrpmatcher" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
        <parameter-name>lenya.usecase</parameter-name>
      </map:matcher>
      <map:matcher name="lenya-step" logger="sitemap.matcher.wrpmatcher" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
        <parameter-name>lenya.step</parameter-name>
      </map:matcher>
    </map:matchers>
    <map:actions>
      <map:action name="task" logger="sitemap.action.task" src="org.apache.lenya.cms.cocoon.acting.TaskAction"/>
      <map:action name="latestpublicationdate" src="com.inadaily.cocoon.acting.LatestPublicationDateAction" logger="sitemap.action.latestpublicationdate" />
    </map:actions>
  </map:components>

  <map:resources/>

  <map:pipelines>

    <!-- Article (HTML View and Publish) -->
    <map:pipeline>
      <map:match pattern="*/*/*/*/*/*.html">
        <map:match type="lenya-usecase" pattern="publish">

          <map:match type="lenya-step" pattern="showscreen">
	    <map:generate type="serverpages" src="../../content/publishing/publish-screen.xsp"/>
	    <map:transform src="../../xslt/publishing/main-new.xsl">
	      <map:parameter name="use-request-parameters" value="true"/>
	    </map:transform>
	    <map:serialize type="html"/>
          </map:match>

          <map:match type="lenya-step" pattern="execute">
	    <map:act type="request">
	      <map:parameter name="parameters" value="true"/>
	      <map:act type="task">
		<map:parameter name="task-id" value="publish"/>
		<map:redirect-to uri="{parent_uri}" session="true"/>
	      </map:act>
	    </map:act>
          </map:match>

        </map:match>

      </map:match>
    </map:pipeline>    

  </map:pipelines>
</map:sitemap>