cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r539313 - in /cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF: mod-db/sitemap.xmap org-db/sitemap.xmap sitemap.xmap transform/sitemap.xmap tutorial/sitemap.xmap
Date Fri, 18 May 2007 08:34:25 GMT
Author: felixk
Date: Fri May 18 01:34:23 2007
New Revision: 539313

URL: http://svn.apache.org/viewvc?view=rev&rev=539313
Log:
reformatting ...

Modified:
    cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/mod-db/sitemap.xmap
    cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/org-db/sitemap.xmap
    cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/sitemap.xmap
    cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/transform/sitemap.xmap
    cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/tutorial/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/mod-db/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/mod-db/sitemap.xmap?view=diff&rev=539313&r1=539312&r2=539313
==============================================================================
--- cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/mod-db/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/mod-db/sitemap.xmap
Fri May 18 01:34:23 2007
@@ -18,220 +18,220 @@
 
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
-  <!-- ========================= Components ============================== -->
+    <!-- ========================= Components ============================== -->
 
-  <map:components>
-    <!-- most components are inherited from parent sitemap -->
-    <!-- just make sure that defaults suit our needs -->
-
-    <map:actions>
-       <!-- these action are in addition to the ones inherited -->
-
-       <!-- declare actions for database operations -->
-       <map:action name="mod-db-add" src="org.apache.cocoon.acting.modular.DatabaseAddAction">
-          <descriptor>database.xml</descriptor>
-          <!-- shall we throw an exception in addition to rolling back
-               the transaction when encountering an error during
-               database ops? 
-          -->
-          <throw-exception>false</throw-exception>
-          <!-- if results should be directed to another destination than the
-               default request attributes, use e.g.
-
-               <output>session</output>
-
-               this can also be specified on the fly through a map:parameter
-               named "output"
-               remember, that input-/output-modules need to be declared in your
-               cocoon.xconf in order to be used here.
-          -->
-       </map:action>
-
-       <map:action name="mod-db-del" src="org.apache.cocoon.acting.modular.DatabaseDeleteAction">
-          <descriptor>database.xml</descriptor>
-          <throw-exception>false</throw-exception>
-       </map:action>
-
-       <map:action name="mod-db-upd" src="org.apache.cocoon.acting.modular.DatabaseUpdateAction">
-          <descriptor>database.xml</descriptor>
-          <throw-exception>false</throw-exception>
-       </map:action>
-
-    </map:actions>
-
-  </map:components>
-
-
-  <!-- ======================= 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>
-
-      <map:match pattern="database.xml">
-        <map:generate src="{0}"/>
-        <map:serialize type="xml"/>
-      </map:match>
-      <map:match pattern="schema.sql">
-        <map:read src="{0}" mime-type="text/plain"/>
-      </map:match>
-   <!-- ========================== Modular DB ================================= -->
-
-       <map:match pattern="">
-          <map:redirect-to uri="user-list"/>
-       </map:match>
-
-        <map:match pattern="file-upload-test">
-            <map:generate type="serverpages" src="file-upload-blob.xsp"/>
-            <map:serialize type="xml"/>
-        </map:match>
-        
-        <!--  Deliver images from database -->
-        <map:match pattern="image/*">
-            <map:read type="databasereader" src="{1}" mime-type="image/jpg">
-                <!-- option sitemap parameters -->
-                <map:parameter name="table" value="media"/>
-                <map:parameter name="image" value="image"/>
-                <map:parameter name="key" value="id"/>
-                <map:parameter name="type-column" value="mimetype"/>
-             </map:read>
-        </map:match>
-        
-
-       <map:match pattern="*">
-
-       <!--
-         First, the logic to do all the database operations. Note,
-         that we do no parameter validation here, just see if some
-         parameters are present. For a real application, you'd
-         want to check their values as well. Note too, that in a
-         more complex setup you'd want to use an action set for
-         this rather than spell it out everywhere.
-         Or even better, call these actions from the flow layer!
-         That way it is easier to react to error conditions.
-      -->
-
-      <!-- ______________________________ inserts ______________________________ -->
-
-      <!-- add new groups to a user's groups -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="add-groups user_groups.uid user_groups.gid"/>
-         <map:act type="mod-db-add">
-        <map:parameter name="table-set" value="user_groups"/>
-         </map:act>
-      </map:act>
-
-      <!-- add one new group -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="add-group groups.gname"/>
-         <map:act type="mod-db-add">
-            <map:parameter name="table-set" value="groups"/>
-         </map:act>
-      </map:act>
-     
-      <!-- add one new user -->
-      <!-- Actually, this one is not used anymore. The one below
-           works well when no groups are supplied.
-       -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="add-user user.name user.firstname user.uname"/>
-         <map:act type="mod-db-add">
-            <map:parameter name="table-set" value="user"/>
-         </map:act>
-      </map:act>
-     
-      <!-- add one new user plus groups -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="add-user-groups user.name user.firstname
user.uname"/>
-         <map:act type="mod-db-add">
-            <map:parameter name="table-set" value="user+groups"/>
-         </map:act>
-      </map:act>
-     
-      <!-- upload binary data -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="add-image"/> <!-- media.image media.id
-->
-         <map:act type="mod-db-add">
-            <map:parameter name="table-set" value="media"/>
-         </map:act>
-      </map:act>
-
-      <!-- ______________________________ updates ______________________________ -->
-
-      <!-- update one user -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="upd-user user.uid user.name user.firstname
user.uname"/>
-         <map:act type="mod-db-upd">
-            <map:parameter name="table-set" value="user"/>
-         </map:act>
-      </map:act>
-     
-
-      <!-- update one group -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="upd-group groups.gid groups.gname"/>
-         <map:act type="mod-db-upd">
-            <map:parameter name="table-set" value="groups"/>
-         </map:act>
-      </map:act>
-     
-      <!-- ______________________________ deletes ______________________________ -->
-
-      <!-- delete one user -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="del-user user.uid"/>
-         <map:act type="mod-db-del">
-            <map:parameter name="table-set" value="user"/>
-         </map:act>
-      </map:act>
-
-      <!-- delete one group -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="del-group groups.gid"/>
-         <map:act type="mod-db-del">
-            <map:parameter name="table-set" value="groups"/>
-         </map:act>
-      </map:act>
-     
-      <!-- delete groups from a user's groups -->
-      <map:act type="req-params">
-         <map:parameter name="parameters" value="remove-groups user_groups.uid user_groups.gid"/>
-         <map:act type="mod-db-del">
-            <map:parameter name="table-set" value="user_groups"/>
-         </map:act>
-      </map:act>
-
-      <!-- ______________________________ content  ______________________________ -->
-
-      <map:generate type="serverpages" src="{1}.xsp"/>
-      <map:transform src="context://samples/blocks/dynamic-page2html.xsl">
-         <map:parameter name="servletPath" value="{request:servletPath}"/>
-         <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
-         <map:parameter name="contextPath" value="{request:contextPath}"/>
-         <map:parameter name="file" value=".xsp"/>
-      </map:transform>
-      <map:transform src="stupid.xsl"/>
-      <map:serialize/>
+    <map:components>
+        <!-- most components are inherited from parent sitemap -->
+        <!-- just make sure that defaults suit our needs -->
+
+        <map:actions>
+            <!-- these action are in addition to the ones inherited -->
+
+            <!-- declare actions for database operations -->
+            <map:action name="mod-db-add" src="org.apache.cocoon.acting.modular.DatabaseAddAction">
+                <descriptor>database.xml</descriptor>
+                <!-- shall we throw an exception in addition to rolling back
+                    the transaction when encountering an error during
+                    database ops? 
+                -->
+                <throw-exception>false</throw-exception>
+                <!-- if results should be directed to another destination than the
+                    default request attributes, use e.g.
+                    
+                    <output>session</output>
+                    
+                    this can also be specified on the fly through a map:parameter
+                    named "output"
+                    remember, that input-/output-modules need to be declared in your
+                    cocoon.xconf in order to be used here.
+                -->
+            </map:action>
+
+            <map:action name="mod-db-del" src="org.apache.cocoon.acting.modular.DatabaseDeleteAction">
+                <descriptor>database.xml</descriptor>
+                <throw-exception>false</throw-exception>
+            </map:action>
+
+            <map:action name="mod-db-upd" src="org.apache.cocoon.acting.modular.DatabaseUpdateAction">
+                <descriptor>database.xml</descriptor>
+                <throw-exception>false</throw-exception>
+            </map:action>
+
+        </map:actions>
+
+    </map:components>
+
+
+    <!-- ======================= 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>
+
+            <map:match pattern="database.xml">
+                <map:generate src="{0}" />
+                <map:serialize type="xml" />
+            </map:match>
+            <map:match pattern="schema.sql">
+                <map:read src="{0}" mime-type="text/plain" />
+            </map:match>
+            <!-- ========================== Modular DB =================================
-->
+
+            <map:match pattern="">
+                <map:redirect-to uri="user-list" />
+            </map:match>
+
+            <map:match pattern="file-upload-test">
+                <map:generate type="serverpages" src="file-upload-blob.xsp" />
+                <map:serialize type="xml" />
+            </map:match>
+
+            <!--  Deliver images from database -->
+            <map:match pattern="image/*">
+                <map:read type="databasereader" src="{1}" mime-type="image/jpg">
+                    <!-- option sitemap parameters -->
+                    <map:parameter name="table" value="media" />
+                    <map:parameter name="image" value="image" />
+                    <map:parameter name="key" value="id" />
+                    <map:parameter name="type-column" value="mimetype" />
+                </map:read>
+            </map:match>
+
+
+            <map:match pattern="*">
+
+                <!--
+                    First, the logic to do all the database operations. Note,
+                    that we do no parameter validation here, just see if some
+                    parameters are present. For a real application, you'd
+                    want to check their values as well. Note too, that in a
+                    more complex setup you'd want to use an action set for
+                    this rather than spell it out everywhere.
+                    Or even better, call these actions from the flow layer!
+                    That way it is easier to react to error conditions.
+                -->
+
+                <!-- ______________________________ inserts ______________________________
-->
+
+                <!-- add new groups to a user's groups -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="add-groups user_groups.uid
user_groups.gid" />
+                    <map:act type="mod-db-add">
+                        <map:parameter name="table-set" value="user_groups" />
+                    </map:act>
+                </map:act>
+
+                <!-- add one new group -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="add-group groups.gname" />
+                    <map:act type="mod-db-add">
+                        <map:parameter name="table-set" value="groups" />
+                    </map:act>
+                </map:act>
+
+                <!-- add one new user -->
+                <!-- Actually, this one is not used anymore. The one below
+                    works well when no groups are supplied.
+                -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="add-user user.name user.firstname
user.uname" />
+                    <map:act type="mod-db-add">
+                        <map:parameter name="table-set" value="user" />
+                    </map:act>
+                </map:act>
+
+                <!-- add one new user plus groups -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="add-user-groups user.name
user.firstname user.uname" />
+                    <map:act type="mod-db-add">
+                        <map:parameter name="table-set" value="user+groups" />
+                    </map:act>
+                </map:act>
+
+                <!-- upload binary data -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="add-image" /><!-- media.image
media.id -->
+                    <map:act type="mod-db-add">
+                        <map:parameter name="table-set" value="media" />
+                    </map:act>
+                </map:act>
+
+                <!-- ______________________________ updates ______________________________
-->
+
+                <!-- update one user -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="upd-user user.uid user.name
user.firstname user.uname" />
+                    <map:act type="mod-db-upd">
+                        <map:parameter name="table-set" value="user" />
+                    </map:act>
+                </map:act>
+
+
+                <!-- update one group -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="upd-group groups.gid groups.gname"
/>
+                    <map:act type="mod-db-upd">
+                        <map:parameter name="table-set" value="groups" />
+                    </map:act>
+                </map:act>
+
+                <!-- ______________________________ deletes ______________________________
-->
+
+                <!-- delete one user -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="del-user user.uid" />
+                    <map:act type="mod-db-del">
+                        <map:parameter name="table-set" value="user" />
+                    </map:act>
+                </map:act>
+
+                <!-- delete one group -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="del-group groups.gid" />
+                    <map:act type="mod-db-del">
+                        <map:parameter name="table-set" value="groups" />
+                    </map:act>
+                </map:act>
+
+                <!-- delete groups from a user's groups -->
+                <map:act type="req-params">
+                    <map:parameter name="parameters" value="remove-groups user_groups.uid
user_groups.gid" />
+                    <map:act type="mod-db-del">
+                        <map:parameter name="table-set" value="user_groups" />
+                    </map:act>
+                </map:act>
+
+                <!-- ______________________________ content  ______________________________
-->
+
+                <map:generate type="serverpages" src="{1}.xsp" />
+                <map:transform src="context://samples/blocks/dynamic-page2html.xsl">
+                    <map:parameter name="servletPath" value="{request:servletPath}" />
+                    <map:parameter name="sitemapURI" value="{request:sitemapURI}" />
+                    <map:parameter name="contextPath" value="{request:contextPath}" />
+                    <map:parameter name="file" value=".xsp" />
+                </map:transform>
+                <map:transform src="stupid.xsl" />
+                <map:serialize />
 
-       </map:match>
+            </map:match>
 
-    </map:pipeline>
-  </map:pipelines>
+        </map:pipeline>
+    </map:pipelines>
 
 </map:sitemap>

Modified: cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/org-db/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/org-db/sitemap.xmap?view=diff&rev=539313&r1=539312&r2=539313
==============================================================================
--- cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/org-db/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/org-db/sitemap.xmap
Fri May 18 01:34:23 2007
@@ -18,100 +18,100 @@
 
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
-  <!-- ========================= Components ================================ -->
+    <!-- ========================= Components ================================ -->
 
-  <map:components>
-    <map:actions>
-      <!--
-        - Original database actions
-        -->
-      <map:action logger="sitemap.action.add-employee" name="add-employee" src="org.apache.cocoon.acting.DatabaseAddAction"/>
-      <map:action logger="sitemap.action.del-employee" name="del-employee" src="org.apache.cocoon.acting.DatabaseDeleteAction"/>
-      <map:action logger="sitemap.action.upd-employee" name="upd-employee" src="org.apache.cocoon.acting.DatabaseUpdateAction"/>
-    </map:actions>
-  </map:components>
-
-  <!-- ========================== Action sets ================================ -->
-
-  <!--
-    - Action sets group actions together. If some actions are often used
-    - together in pipeline fragments, it's easier to group them and refer
-    - to the group. For more info, please see the docs.
-    -->
-  <map:action-sets>
-    <map:action-set name="employee">
-      <map:act action="Add" type="add-employee"/>
-      <map:act action="Delete" type="del-employee"/>
-      <map:act action="Update" type="upd-employee"/>
-    </map:action-set>
-  </map:action-sets>
-
-  <!-- ============================ 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>
-
-      <map:match pattern="employee.xml">
-        <map:generate src="{0}"/>
-        <map:serialize type="xml"/>
-      </map:match>
-
-      <map:match pattern="employee">
-        <map:act set="employee">
-          <map:parameter name="descriptor" value="employee.xml"/>
-          <!--
-            - Here an action is used. To be precise: all actions that were
-            - grouped together to a set named "employee". See user docs on
-            - actions for more on this.
-            -
-            - This fragment until the closing tag of map:act is only
-            - included if at least one action of this set completes
-            - successfully.
+    <map:components>
+        <map:actions>
+            <!--
+                - Original database actions
             -->
-          <map:generate src="employee.xsp" type="serverpages"/>
-          <map:transform src="context://samples/blocks/dynamic-page2html.xsl">
-            <map:parameter name="servletPath" value="{request:servletPath}"/>
-            <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
-            <map:parameter name="contextPath" value="{request:contextPath}"/>
-            <map:parameter name="file" value=".xsp"/>
-          </map:transform>
-          <map:serialize/>
-        </map:act>
-      </map:match>
-
-      <map:match pattern="*">
-        <map:generate src="{1}.xsp" type="serverpages"/>
-        <map:transform src="context://samples/blocks/dynamic-page2html.xsl">
-          <map:parameter name="servletPath" value="{request:servletPath}"/>
-          <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
-          <map:parameter name="contextPath" value="{request:contextPath}"/>
-          <map:parameter name="file" value=".xsp"/>
-        </map:transform>
-        <map:serialize/>
-      </map:match>
-
-      <map:match pattern="">
-        <map:redirect-to uri="../"/>
-      </map:match>
+            <map:action logger="sitemap.action.add-employee" name="add-employee" src="org.apache.cocoon.acting.DatabaseAddAction"
/>
+            <map:action logger="sitemap.action.del-employee" name="del-employee" src="org.apache.cocoon.acting.DatabaseDeleteAction"
/>
+            <map:action logger="sitemap.action.upd-employee" name="upd-employee" src="org.apache.cocoon.acting.DatabaseUpdateAction"
/>
+        </map:actions>
+    </map:components>
+
+    <!-- ========================== Action sets ================================ -->
+
+    <!--
+        - Action sets group actions together. If some actions are often used
+        - together in pipeline fragments, it's easier to group them and refer
+        - to the group. For more info, please see the docs.
+    -->
+    <map:action-sets>
+        <map:action-set name="employee">
+            <map:act action="Add" type="add-employee" />
+            <map:act action="Delete" type="del-employee" />
+            <map:act action="Update" type="upd-employee" />
+        </map:action-set>
+    </map:action-sets>
+
+    <!-- ============================ 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>
+
+            <map:match pattern="employee.xml">
+                <map:generate src="{0}" />
+                <map:serialize type="xml" />
+            </map:match>
+
+            <map:match pattern="employee">
+                <map:act set="employee">
+                    <map:parameter name="descriptor" value="employee.xml" />
+                    <!--
+                        - Here an action is used. To be precise: all actions that were
+                        - grouped together to a set named "employee". See user docs on
+                        - actions for more on this.
+                        -
+                        - This fragment until the closing tag of map:act is only
+                        - included if at least one action of this set completes
+                        - successfully.
+                    -->
+                    <map:generate src="employee.xsp" type="serverpages" />
+                    <map:transform src="context://samples/blocks/dynamic-page2html.xsl">
+                        <map:parameter name="servletPath" value="{request:servletPath}"
/>
+                        <map:parameter name="sitemapURI" value="{request:sitemapURI}"
/>
+                        <map:parameter name="contextPath" value="{request:contextPath}"
/>
+                        <map:parameter name="file" value=".xsp" />
+                    </map:transform>
+                    <map:serialize />
+                </map:act>
+            </map:match>
+
+            <map:match pattern="*">
+                <map:generate src="{1}.xsp" type="serverpages" />
+                <map:transform src="context://samples/blocks/dynamic-page2html.xsl">
+                    <map:parameter name="servletPath" value="{request:servletPath}" />
+                    <map:parameter name="sitemapURI" value="{request:sitemapURI}" />
+                    <map:parameter name="contextPath" value="{request:contextPath}" />
+                    <map:parameter name="file" value=".xsp" />
+                </map:transform>
+                <map:serialize />
+            </map:match>
+
+            <map:match pattern="">
+                <map:redirect-to uri="../" />
+            </map:match>
 
-    </map:pipeline>
-  </map:pipelines>
+        </map:pipeline>
+    </map:pipelines>
 
 </map:sitemap>

Modified: cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=539313&r1=539312&r2=539313
==============================================================================
--- cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/sitemap.xmap
Fri May 18 01:34:23 2007
@@ -18,66 +18,64 @@
 
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
-<!-- ========================= Components ================================ -->
+    <!-- ========================= Components ================================ -->
 
-  <map:components>
-    <map:readers default="resource">
-      <map:reader name="databasereader"
-                  logger="sitemap.reader.databasereader"
-                  src="org.apache.cocoon.reading.DatabaseReader">
-        <use-connection>personnel</use-connection>
-      </map:reader>
-    </map:readers>
-  </map:components>
-
-  <!-- =========================== 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>
-
-      <map:match pattern="">
-        <map:redirect-to uri="samples"/>
-      </map:match>
-
-      <map:match pattern="welcome">
-        <map:redirect-to uri="samples"/>
-      </map:match>
-
-      <map:match pattern="schema.sql">
-        <map:read src="context://WEB-INF/db/schema.sql" mime-type="text/plain"/>
-      </map:match>
-
-      <map:match pattern="samples">
-        <map:generate src="samples.xml"/>
-        <map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
-          <map:parameter name="contextPath" value="{request:contextPath}"/>
-        </map:transform>
-        <map:serialize/>
-      </map:match>
-
-      <!-- samples automount -->
-      <map:match pattern="*/**">
-        <map:mount uri-prefix="{1}" src="{1}/"/>
-      </map:match>
+    <map:components>
+        <map:readers default="resource">
+            <map:reader name="databasereader" logger="sitemap.reader.databasereader" src="org.apache.cocoon.reading.DatabaseReader">
+                <use-connection>personnel</use-connection>
+            </map:reader>
+        </map:readers>
+    </map:components>
+
+    <!-- =========================== 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>
+
+            <map:match pattern="">
+                <map:redirect-to uri="samples" />
+            </map:match>
+
+            <map:match pattern="welcome">
+                <map:redirect-to uri="samples" />
+            </map:match>
+
+            <map:match pattern="schema.sql">
+                <map:read src="context://WEB-INF/db/schema.sql" mime-type="text/plain"
/>
+            </map:match>
+
+            <map:match pattern="samples">
+                <map:generate src="samples.xml" />
+                <map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
+                    <map:parameter name="contextPath" value="{request:contextPath}" />
+                </map:transform>
+                <map:serialize />
+            </map:match>
+
+            <!-- samples automount -->
+            <map:match pattern="*/**">
+                <map:mount uri-prefix="{1}" src="{1}/" />
+            </map:match>
 
-    </map:pipeline>
-  </map:pipelines>
+        </map:pipeline>
+    </map:pipelines>
 
 </map:sitemap>

Modified: cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/transform/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/transform/sitemap.xmap?view=diff&rev=539313&r1=539312&r2=539313
==============================================================================
--- cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/transform/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/transform/sitemap.xmap
Fri May 18 01:34:23 2007
@@ -17,53 +17,53 @@
 -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
-<!-- ============================ Views ==================================== -->
+    <!-- ============================ 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>
-
-      <map:match pattern="*">
-        <map:generate src="{1}.xml"/>
-        <!--
-          - Let's have a look at the user docs:
-          -
-          - "[...] The purpose of the SQLTransformer is to query a
-          - database and translate the result to XML. [...]"
-          -->
-        <map:transform type="sql">
-          <map:parameter name="use-connection" value="personnel"/>
-        </map:transform>
-        <map:transform src="../stylesheets/sql2html.xsl">
-          <map:parameter name="servletPath" value="{request:servletPath}"/>
-          <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
-          <map:parameter name="contextPath" value="{request:contextPath}"/>
-          <map:parameter name="file" value=".xml"/>
-        </map:transform>
-        <map:serialize type="html"/>
-      </map:match>
-
-      <map:match pattern="">
-        <map:redirect-to uri="../"/>
-      </map:match>
+    <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>
+
+            <map:match pattern="*">
+                <map:generate src="{1}.xml" />
+                <!--
+                    - Let's have a look at the user docs:
+                    -
+                    - "[...] The purpose of the SQLTransformer is to query a
+                    - database and translate the result to XML. [...]"
+                -->
+                <map:transform type="sql">
+                    <map:parameter name="use-connection" value="personnel" />
+                </map:transform>
+                <map:transform src="../stylesheets/sql2html.xsl">
+                    <map:parameter name="servletPath" value="{request:servletPath}" />
+                    <map:parameter name="sitemapURI" value="{request:sitemapURI}" />
+                    <map:parameter name="contextPath" value="{request:contextPath}" />
+                    <map:parameter name="file" value=".xml" />
+                </map:transform>
+                <map:serialize type="html" />
+            </map:match>
+
+            <map:match pattern="">
+                <map:redirect-to uri="../" />
+            </map:match>
 
-    </map:pipeline>
-  </map:pipelines>
+        </map:pipeline>
+    </map:pipelines>
 
 </map:sitemap>

Modified: cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/tutorial/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/tutorial/sitemap.xmap?view=diff&rev=539313&r1=539312&r2=539313
==============================================================================
--- cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/tutorial/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-databases/cocoon-databases-sample/src/main/resources/COB-INF/tutorial/sitemap.xmap
Fri May 18 01:34:23 2007
@@ -18,96 +18,93 @@
 
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
-<!-- =========================== Components ================================ -->
+    <!-- =========================== Components ================================ -->
 
- <map:components>
+    <map:components>
 
-  <map:actions>
-   <map:action name="dbAdd" logger="sitemap.tutorial.action.dbAdd"
-               src="org.apache.cocoon.acting.DatabaseAddAction"/>
-
-   <map:action name="dbDel" logger="sitemap.tutorial.action.dbDel"
-               src="org.apache.cocoon.acting.DatabaseDeleteAction"/>
-
-   <map:action name="dbUpd" logger="sitemap.tutorial.action.dbUpd"
-               src="org.apache.cocoon.acting.DatabaseUpdateAction"/>
-  </map:actions>
-
- </map:components>
-
-<!-- ========================== Action sets ================================ -->
-
- <map:action-sets>
-  <map:action-set name="process">
-   <map:act type="form-validator" action="Create Department">
-     <map:parameter name="constraint-set" value="add"/>
-     <map:act type="dbAdd"/>
-   </map:act>
-   <map:act type="form-validator" action="Update Department">
-     <map:parameter name="constraint-set" value="update"/>
-     <map:act type="dbUpd"/>
-   </map:act>
-   <map:act type="dbDel" action="Delete Department"/>
-   <map:act type="form-validator" action="Create Employee">
-     <map:parameter name="constraint-set" value="add"/>
-     <map:act type="dbAdd"/>
-   </map:act>
-   <map:act type="form-validator" action="Update Employee">
-     <map:parameter name="constraint-set" value="update"/>
-     <map:act type="dbUpd"/>
-   </map:act>
-   <map:act type="dbDel" action="Delete Employee"/>
-  </map:action-set>
- </map:action-sets>
-
-<!-- =========================== Pipelines ================================= -->
-
- <map:pipelines>
-  <map:pipeline>
-
-  <map:match pattern="">
-    <map:redirect-to uri="home.html"/>
-  </map:match>
-
-<map:match pattern="*-dept.html">
-  <map:act set="process">
-    <map:parameter name="descriptor" value="context://samples/databases/tutorial/docs/department-form.xml"/>
-    <map:generate type="serverpages" src="docs/confirm-dept.xsp"/>
-    <map:transform src="apache.xsl"/>
-    <map:serialize/>
-  </map:act>
-  <map:generate type="serverpages" src="docs/{1}-dept.xsp"/>
-  <map:transform src="apache.xsl"/>
-  <!--map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"/-->
-  <map:serialize/>
-</map:match>
-
-<map:match pattern="*-empl.html">
-  <map:act set="process">
-    <map:parameter name="descriptor" value="context://samples/databases/tutorial/docs/employee-form.xml"/>
-    <map:generate type="serverpages" src="docs/confirm-empl.xsp"/>
-    <map:transform src="apache.xsl"/>
-    <map:serialize/>
-  </map:act>
-  <map:generate type="serverpages" src="docs/{1}-empl.xsp"/>
-  <map:transform src="apache.xsl"/>
-  <!--map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"/-->
-  <map:serialize/>
-</map:match>
-
-  <map:match pattern="**.html">
-    <map:generate src="docs/{1}.xml"/>
-  <map:transform src="apache.xsl"/>
-    <!--map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"/-->
-    <map:serialize/>
-  </map:match>
-  
-  <map:match pattern="images/**">
-    <map:read src="context://docs/{0}"/>
-  </map:match>
+        <map:actions>
+            <map:action name="dbAdd" logger="sitemap.tutorial.action.dbAdd" src="org.apache.cocoon.acting.DatabaseAddAction"
/>
 
-  </map:pipeline>
+            <map:action name="dbDel" logger="sitemap.tutorial.action.dbDel" src="org.apache.cocoon.acting.DatabaseDeleteAction"
/>
 
- </map:pipelines>
+            <map:action name="dbUpd" logger="sitemap.tutorial.action.dbUpd" src="org.apache.cocoon.acting.DatabaseUpdateAction"
/>
+        </map:actions>
+
+    </map:components>
+
+    <!-- ========================== Action sets ================================ -->
+
+    <map:action-sets>
+        <map:action-set name="process">
+            <map:act type="form-validator" action="Create Department">
+                <map:parameter name="constraint-set" value="add" />
+                <map:act type="dbAdd" />
+            </map:act>
+            <map:act type="form-validator" action="Update Department">
+                <map:parameter name="constraint-set" value="update" />
+                <map:act type="dbUpd" />
+            </map:act>
+            <map:act type="dbDel" action="Delete Department" />
+            <map:act type="form-validator" action="Create Employee">
+                <map:parameter name="constraint-set" value="add" />
+                <map:act type="dbAdd" />
+            </map:act>
+            <map:act type="form-validator" action="Update Employee">
+                <map:parameter name="constraint-set" value="update" />
+                <map:act type="dbUpd" />
+            </map:act>
+            <map:act type="dbDel" action="Delete Employee" />
+        </map:action-set>
+    </map:action-sets>
+
+    <!-- =========================== Pipelines ================================= -->
+
+    <map:pipelines>
+        <map:pipeline>
+
+            <map:match pattern="">
+                <map:redirect-to uri="home.html" />
+            </map:match>
+
+            <map:match pattern="*-dept.html">
+                <map:act set="process">
+                    <map:parameter name="descriptor" value="context://samples/databases/tutorial/docs/department-form.xml"
/>
+                    <map:generate type="serverpages" src="docs/confirm-dept.xsp" />
+                    <map:transform src="apache.xsl" />
+                    <map:serialize />
+                </map:act>
+                <map:generate type="serverpages" src="docs/{1}-dept.xsp" />
+                <map:transform src="apache.xsl" />
+                <!--map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"/-->
+                <map:serialize />
+            </map:match>
+
+            <map:match pattern="*-empl.html">
+                <map:act set="process">
+                    <map:parameter name="descriptor" value="context://samples/databases/tutorial/docs/employee-form.xml"
/>
+                    <map:generate type="serverpages" src="docs/confirm-empl.xsp" />
+                    <map:transform src="apache.xsl" />
+                    <map:serialize />
+                </map:act>
+                <map:generate type="serverpages" src="docs/{1}-empl.xsp" />
+                <map:transform src="apache.xsl" />
+                <!--map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"/-->
+                <map:serialize />
+            </map:match>
+
+            <map:match pattern="**.html">
+                <map:generate src="docs/{1}.xml" />
+                <map:transform src="apache.xsl" />
+                <!--map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"/-->
+                <map:serialize />
+            </map:match>
+
+            <map:match pattern="images/**">
+                <map:read src="context://docs/{0}" />
+            </map:match>
+
+        </map:pipeline>
+
+    </map:pipelines>
 
 </map:sitemap>



Mime
View raw message