You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by fe...@apache.org on 2007/05/18 08:50:22 UTC
svn commit: r539291 -
/cocoon/trunk/blocks/cocoon-querybean/cocoon-querybean-sample/src/main/resources/COB-INF/sitemap.xmap
Author: felixk
Date: Thu May 17 23:50:21 2007
New Revision: 539291
URL: http://svn.apache.org/viewvc?view=rev&rev=539291
Log:
reformatting ...
Modified:
cocoon/trunk/blocks/cocoon-querybean/cocoon-querybean-sample/src/main/resources/COB-INF/sitemap.xmap
Modified: cocoon/trunk/blocks/cocoon-querybean/cocoon-querybean-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-querybean/cocoon-querybean-sample/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=539291&r1=539290&r2=539291
==============================================================================
--- cocoon/trunk/blocks/cocoon-querybean/cocoon-querybean-sample/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/trunk/blocks/cocoon-querybean/cocoon-querybean-sample/src/main/resources/COB-INF/sitemap.xmap Thu May 17 23:50:21 2007
@@ -18,242 +18,242 @@
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-<!-- =========================== Components =================================== -->
+ <!-- =========================== Components =================================== -->
- <map:components>
- <map:include-properties dir="properties"/>
- <map:transformers default="xslt">
- <map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
- <catalogues default="forms">
- <catalogue id="local" name="messages" location="i18n"/>
- <catalogue id="forms" name="FormsMessages" location="context://samples/blocks/forms/messages"/>
- </catalogues>
- <cache-at-startup>true</cache-at-startup>
- </map:transformer>
- <map:transformer name="lucene-indexer" src="org.apache.cocoon.transformation.LuceneIndexTransformer"/>
- </map:transformers>
- <map:pipes default="caching"/>
- </map:components>
-
-<!-- =========================== FlowScripts =================================== -->
-
- <map:flow language="javascript">
- <map:script src="flow/query.js"/>
- <map:script src="flow/indexer.js"/>
- </map:flow>
-
-<!-- =========================== Views =================================== -->
-
-<map:views>
- <map:view name="content" from-label="content">
- <map:serialize type="xml"/>
- </map:view>
-
- <map:view from-label="content" name="pretty-content">
- <map:transform src="context://stylesheets/system/xml2html.xslt"/>
- <map:serialize type="html"/>
- </map:view>
-
- <map:view name="links" from-position="last">
- <map:serialize type="links"/>
- </map:view>
-
-</map:views>
-
-<!-- =========================== Pipelines ================================= -->
-
-<map:pipelines>
- <map:pipeline internal-only="true">
-
- <map:act type="locale">
-
- <!-- displays the forms -->
- <map:match pattern="form/*">
- <map:generate type="jx" src="forms/{1}-template.xml"/>
- <map:transform type="forms">
- <map:parameter name="locale" value="{../locale}"/>
- </map:transform>
- <map:transform type="i18n">
- <map:parameter name="locale" value="{../locale}"/>
- </map:transform>
- <map:transform src="context://samples/blocks/forms/resources/forms-samples-styling.xsl"/>
- <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
- <map:parameter name="contextPath" value="{request:contextPath}"/>
- </map:transform>
- <map:serialize/>
- </map:match>
-
- <!-- prepare the document for indexing -->
- <map:match pattern="prepare4indexing/**">
- <map:generate src="{1}"/>
- <map:transform src="stylesheets/content2lucene.xsl"/>
- <map:serialize type="xml"/>
- </map:match>
-
- <!-- the lucene indexer -->
- <map:match pattern="screen/indexer">
- <map:generate type="jx" src="screens/lucene-indexer.xml"/>
- <map:transform type="cinclude"/>
- <map:transform type="lucene-indexer"/>
- <map:transform src="stylesheets/lucene2simple-page.xsl"/>
- <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
- <map:parameter name="contextPath" value="{request:contextPath}"/>
- </map:transform>
- <map:serialize/>
- </map:match>
-
- <!-- displays the rest of the screens -->
- <map:match pattern="screen/*">
- <map:generate type="jx" src="screens/{1}.xml"/>
- <map:transform type="i18n">
- <map:parameter name="locale" value="{../locale}"/>
- </map:transform>
- <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
- <map:parameter name="contextPath" value="{request:contextPath}"/>
- </map:transform>
- <map:serialize/>
- </map:match>
-
- </map:act>
-
- </map:pipeline>
-
- <map:pipeline>
-
- <!--
- Used for CForms Continuations
-
- must be placed before external page pipelines
- and after internal screen pipelines
- otherwise you get infinite loops
- -->
- <map:match type="request-parameter" pattern="continuation-id">
- <map:call continuation="{1}"/>
- </map:match>
-
- <!-- home page -->
- <map:match pattern="">
- <map:redirect-to uri="cocoon:/screen/index"/>
- </map:match>
- <map:match pattern="welcome">
- <map:redirect-to uri="cocoon:/screen/index"/>
- </map:match>
-
- <map:match pattern="images/**">
- <map:read src="resources/images/{1}"/>
- </map:match>
-
- <!-- create the index from the contents of a collection -->
- <map:match pattern="create.html">
- <map:call function="indexCollection">
- <map:parameter name="screen" value="screen/indexer"/>
- <map:parameter name="lucene-directory" value="{global:lucene-directory}"/>
- <map:parameter name="lucene-analyzer" value="{global:lucene-analyzer}"/>
- <map:parameter name="lucene-merge-factor" value="10"/>
- <map:parameter name="lucene-create-index" value="false"/>
- <map:parameter name="lucene-content" value="cocoon:/prepare4indexing/"/>
- <map:parameter name="content-directory" value="context://docs/xdocs"/>
- <map:parameter name="include-pattern" value="\.xml$"/>
- <map:parameter name="exclude-pattern" value="/book\.xml$"/>
- <map:parameter name="result-directory" value="/docs/"/>
- <map:parameter name="result-suffix" value=".html"/>
- </map:call>
- </map:match>
-
- <!-- update the index with a single resource -->
- <map:match pattern="update/**">
- <map:call function="indexItem">
- <map:parameter name="screen" value="screen/indexer"/>
- <map:parameter name="lucene-directory" value="{global:lucene-directory}"/>
- <map:parameter name="lucene-analyzer" value="{global:lucene-analyzer}"/>
- <map:parameter name="lucene-merge-factor" value="10"/>
- <map:parameter name="lucene-create-index" value="false"/>
- <map:parameter name="lucene-content" value="cocoon:/prepare4indexing/"/>
- <map:parameter name="content-directory" value="{global:root}"/>
- <map:parameter name="indexer-target" value="{1}"/><!-- the resource to be indexed -->
- <map:parameter name="result-directory" value="/docs/"/>
- <map:parameter name="result-suffix" value=".html"/>
- </map:call>
- </map:match>
-
- <!-- list history -->
- <map:match pattern="history.html">
- <map:call function="showHistory">
- <map:parameter name="screen" value="screen/history"/>
- <map:parameter name="history" value="{global:history}"/>
- </map:call>
- </map:match>
-
- <!-- clear history -->
- <map:match pattern="clear-history.html">
- <map:call function="clearHistory">
- <map:parameter name="screen" value="screen/history"/>
- <map:parameter name="history" value="{global:history}"/>
- </map:call>
- </map:match>
-
- <!-- list favourites -->
- <map:match pattern="favourites.html">
- <map:call function="showFavourites">
- <map:parameter name="screen" value="screen/favourites"/>
- <map:parameter name="user-id" value="anon"/>
- <!-- NB. this value is for testing .... it is more likely you would use a value like the commented out one below -->
- <!--<map:parameter name="user-id" value="{session-context:authentication/authentication/ID}"/>-->
- </map:call>
- </map:match>
-
- <!-- add a history item to the favourites, using the history ID -->
- <map:match pattern="add-favourite.html">
- <map:call function="addFavourite">
- <map:parameter name="screen" value="screen/favourites"/>
- <map:parameter name="user-id" value="anon"/>
- <!-- NB. this value is for testing .... it is more likely you would use a value like the commented out one below -->
- <!--<map:parameter name="user-id" value="{session-context:authentication/authentication/ID}"/>-->
- <map:parameter name="hid" value="{request-param:hid}"/>
- <map:parameter name="history" value="{global:history}"/>
- </map:call>
- </map:match>
-
- <!-- remove an item from the favourites, using the favourite ID -->
- <map:match pattern="remove-favourite.html">
- <map:call function="removeFavourite">
- <map:parameter name="screen" value="screen/favourites"/>
- <map:parameter name="user-id" value="anon"/>
- <!-- NB. this value is for testing .... it is more likely you would use a value like the commented out one below -->
- <!--<map:parameter name="user-id" value="{session-context:authentication/authentication/ID}"/>-->
- <map:parameter name="fid" value="{request-param:fid}"/>
- </map:call>
- </map:match>
-
- <!-- do the searches -->
- <map:match pattern="*.html">
- <map:call function="doSearch">
- <map:parameter name="form" value="form/{1}"/>
- <map:parameter name="form-definition" value="forms/{1}-model.xml"/>
- <map:parameter name="bindingURI" value="forms/{1}-binding.xml"/>
- <map:parameter name="lucene-directory" value="{global:lucene-directory}"/>
- <map:parameter name="lucene-analyzer" value="{global:lucene-analyzer}"/>
- <map:parameter name="screen" value="screen/results"/>
- <map:parameter name="history" value="{global:history}"/>
- <map:parameter name="type" value="{1}"/>
- <map:parameter name="hid" value="{request-param:hid}"/>
- <map:parameter name="fid" value="{request-param:fid}"/>
- <map:parameter name="page" value="{request-param:page}"/>
- <map:parameter name="query" value="{request-param:query}"/>
- <map:parameter name="match" value="{request-param:match}"/>
- <map:parameter name="field" value="{request-param:field}"/>
- <map:parameter name="size" value="{request-param:size}"/>
- <map:parameter name="bool" value="{request-param:bool}"/>
- </map:call>
- </map:match>
-
- <!-- used in the docs, to show files -->
- <map:match pattern="**.xml">
- <map:generate src="{1}.xml"/>
- <map:serialize type="xml"/>
- </map:match>
+ <map:components>
+ <map:include-properties dir="properties" />
+ <map:transformers default="xslt">
+ <map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
+ <catalogues default="forms">
+ <catalogue id="local" name="messages" location="i18n" />
+ <catalogue id="forms" name="FormsMessages" location="context://samples/blocks/forms/messages" />
+ </catalogues>
+ <cache-at-startup>true</cache-at-startup>
+ </map:transformer>
+ <map:transformer name="lucene-indexer" src="org.apache.cocoon.transformation.LuceneIndexTransformer" />
+ </map:transformers>
+ <map:pipes default="caching" />
+ </map:components>
+
+ <!-- =========================== FlowScripts =================================== -->
+
+ <map:flow language="javascript">
+ <map:script src="flow/query.js" />
+ <map:script src="flow/indexer.js" />
+ </map:flow>
+
+ <!-- =========================== Views =================================== -->
+
+ <map:views>
+ <map:view name="content" from-label="content">
+ <map:serialize type="xml" />
+ </map:view>
+
+ <map:view from-label="content" name="pretty-content">
+ <map:transform src="context://stylesheets/system/xml2html.xslt" />
+ <map:serialize type="html" />
+ </map:view>
+
+ <map:view name="links" from-position="last">
+ <map:serialize type="links" />
+ </map:view>
+
+ </map:views>
+
+ <!-- =========================== Pipelines ================================= -->
+
+ <map:pipelines>
+ <map:pipeline internal-only="true">
+
+ <map:act type="locale">
+
+ <!-- displays the forms -->
+ <map:match pattern="form/*">
+ <map:generate type="jx" src="forms/{1}-template.xml" />
+ <map:transform type="forms">
+ <map:parameter name="locale" value="{../locale}" />
+ </map:transform>
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{../locale}" />
+ </map:transform>
+ <map:transform src="context://samples/blocks/forms/resources/forms-samples-styling.xsl" />
+ <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
+ <map:parameter name="contextPath" value="{request:contextPath}" />
+ </map:transform>
+ <map:serialize />
+ </map:match>
+
+ <!-- prepare the document for indexing -->
+ <map:match pattern="prepare4indexing/**">
+ <map:generate src="{1}" />
+ <map:transform src="stylesheets/content2lucene.xsl" />
+ <map:serialize type="xml" />
+ </map:match>
+
+ <!-- the lucene indexer -->
+ <map:match pattern="screen/indexer">
+ <map:generate type="jx" src="screens/lucene-indexer.xml" />
+ <map:transform type="cinclude" />
+ <map:transform type="lucene-indexer" />
+ <map:transform src="stylesheets/lucene2simple-page.xsl" />
+ <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
+ <map:parameter name="contextPath" value="{request:contextPath}" />
+ </map:transform>
+ <map:serialize />
+ </map:match>
+
+ <!-- displays the rest of the screens -->
+ <map:match pattern="screen/*">
+ <map:generate type="jx" src="screens/{1}.xml" />
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{../locale}" />
+ </map:transform>
+ <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
+ <map:parameter name="contextPath" value="{request:contextPath}" />
+ </map:transform>
+ <map:serialize />
+ </map:match>
+
+ </map:act>
+
+ </map:pipeline>
+
+ <map:pipeline>
+
+ <!--
+ Used for CForms Continuations
+
+ must be placed before external page pipelines
+ and after internal screen pipelines
+ otherwise you get infinite loops
+ -->
+ <map:match type="request-parameter" pattern="continuation-id">
+ <map:call continuation="{1}" />
+ </map:match>
+
+ <!-- home page -->
+ <map:match pattern="">
+ <map:redirect-to uri="cocoon:/screen/index" />
+ </map:match>
+ <map:match pattern="welcome">
+ <map:redirect-to uri="cocoon:/screen/index" />
+ </map:match>
+
+ <map:match pattern="images/**">
+ <map:read src="resources/images/{1}" />
+ </map:match>
+
+ <!-- create the index from the contents of a collection -->
+ <map:match pattern="create.html">
+ <map:call function="indexCollection">
+ <map:parameter name="screen" value="screen/indexer" />
+ <map:parameter name="lucene-directory" value="{global:lucene-directory}" />
+ <map:parameter name="lucene-analyzer" value="{global:lucene-analyzer}" />
+ <map:parameter name="lucene-merge-factor" value="10" />
+ <map:parameter name="lucene-create-index" value="false" />
+ <map:parameter name="lucene-content" value="cocoon:/prepare4indexing/" />
+ <map:parameter name="content-directory" value="context://docs/xdocs" />
+ <map:parameter name="include-pattern" value="\.xml$" />
+ <map:parameter name="exclude-pattern" value="/book\.xml$" />
+ <map:parameter name="result-directory" value="/docs/" />
+ <map:parameter name="result-suffix" value=".html" />
+ </map:call>
+ </map:match>
+
+ <!-- update the index with a single resource -->
+ <map:match pattern="update/**">
+ <map:call function="indexItem">
+ <map:parameter name="screen" value="screen/indexer" />
+ <map:parameter name="lucene-directory" value="{global:lucene-directory}" />
+ <map:parameter name="lucene-analyzer" value="{global:lucene-analyzer}" />
+ <map:parameter name="lucene-merge-factor" value="10" />
+ <map:parameter name="lucene-create-index" value="false" />
+ <map:parameter name="lucene-content" value="cocoon:/prepare4indexing/" />
+ <map:parameter name="content-directory" value="{global:root}" />
+ <map:parameter name="indexer-target" value="{1}" /><!-- the resource to be indexed -->
+ <map:parameter name="result-directory" value="/docs/" />
+ <map:parameter name="result-suffix" value=".html" />
+ </map:call>
+ </map:match>
+
+ <!-- list history -->
+ <map:match pattern="history.html">
+ <map:call function="showHistory">
+ <map:parameter name="screen" value="screen/history" />
+ <map:parameter name="history" value="{global:history}" />
+ </map:call>
+ </map:match>
+
+ <!-- clear history -->
+ <map:match pattern="clear-history.html">
+ <map:call function="clearHistory">
+ <map:parameter name="screen" value="screen/history" />
+ <map:parameter name="history" value="{global:history}" />
+ </map:call>
+ </map:match>
+
+ <!-- list favourites -->
+ <map:match pattern="favourites.html">
+ <map:call function="showFavourites">
+ <map:parameter name="screen" value="screen/favourites" />
+ <map:parameter name="user-id" value="anon" />
+ <!-- NB. this value is for testing .... it is more likely you would use a value like the commented out one below -->
+ <!--<map:parameter name="user-id" value="{session-context:authentication/authentication/ID}"/>-->
+ </map:call>
+ </map:match>
+
+ <!-- add a history item to the favourites, using the history ID -->
+ <map:match pattern="add-favourite.html">
+ <map:call function="addFavourite">
+ <map:parameter name="screen" value="screen/favourites" />
+ <map:parameter name="user-id" value="anon" />
+ <!-- NB. this value is for testing .... it is more likely you would use a value like the commented out one below -->
+ <!--<map:parameter name="user-id" value="{session-context:authentication/authentication/ID}"/>-->
+ <map:parameter name="hid" value="{request-param:hid}" />
+ <map:parameter name="history" value="{global:history}" />
+ </map:call>
+ </map:match>
+
+ <!-- remove an item from the favourites, using the favourite ID -->
+ <map:match pattern="remove-favourite.html">
+ <map:call function="removeFavourite">
+ <map:parameter name="screen" value="screen/favourites" />
+ <map:parameter name="user-id" value="anon" />
+ <!-- NB. this value is for testing .... it is more likely you would use a value like the commented out one below -->
+ <!--<map:parameter name="user-id" value="{session-context:authentication/authentication/ID}"/>-->
+ <map:parameter name="fid" value="{request-param:fid}" />
+ </map:call>
+ </map:match>
+
+ <!-- do the searches -->
+ <map:match pattern="*.html">
+ <map:call function="doSearch">
+ <map:parameter name="form" value="form/{1}" />
+ <map:parameter name="form-definition" value="forms/{1}-model.xml" />
+ <map:parameter name="bindingURI" value="forms/{1}-binding.xml" />
+ <map:parameter name="lucene-directory" value="{global:lucene-directory}" />
+ <map:parameter name="lucene-analyzer" value="{global:lucene-analyzer}" />
+ <map:parameter name="screen" value="screen/results" />
+ <map:parameter name="history" value="{global:history}" />
+ <map:parameter name="type" value="{1}" />
+ <map:parameter name="hid" value="{request-param:hid}" />
+ <map:parameter name="fid" value="{request-param:fid}" />
+ <map:parameter name="page" value="{request-param:page}" />
+ <map:parameter name="query" value="{request-param:query}" />
+ <map:parameter name="match" value="{request-param:match}" />
+ <map:parameter name="field" value="{request-param:field}" />
+ <map:parameter name="size" value="{request-param:size}" />
+ <map:parameter name="bool" value="{request-param:bool}" />
+ </map:call>
+ </map:match>
+
+ <!-- used in the docs, to show files -->
+ <map:match pattern="**.xml">
+ <map:generate src="{1}.xml" />
+ <map:serialize type="xml" />
+ </map:match>
- </map:pipeline>
- </map:pipelines>
+ </map:pipeline>
+ </map:pipelines>
</map:sitemap>