home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / unsecure.xmap < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  10.3 KB  |  269 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <!-- minimal sitemap for Cocoon 2 -->
  18. <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  19.  
  20.  
  21.     <!-- ======= Components ======= -->
  22.     
  23.     
  24.  <map:components>
  25.   <map:generators   default="file"/>
  26.   <map:transformers default="xslt"/>
  27.   <map:readers      default="resource"/>
  28.   <map:serializers  default="html">
  29.           <map:serializer logger="sitemap.serializer.svg2png" mime-type="image/jpeg" name="svg2jpeg" src="org.apache.cocoon.serialization.SVGSerializer">
  30.             <parameter name="quality" type="float" value="0.9"/>
  31.         </map:serializer>
  32. </map:serializers>
  33.   <map:matchers     default="wildcard"/>
  34.   <map:selectors    default="browser">
  35.     <map:selector name="resource-exists"
  36.                logger="sitemap.selector.resource-exists"
  37.                src="org.apache.cocoon.selection.ResourceExistsSelector" />  
  38.    </map:selectors>
  39.   <map:actions>
  40.        <map:action logger="sitemap.action.request" name="request" src="org.apache.cocoon.acting.RequestParamAction"/>
  41.   </map:actions>
  42.  
  43.   <map:pipes        default="caching"/>
  44.  </map:components>
  45.  
  46.  
  47. <!-- =========================== Resources =============================== -->
  48. <map:resources>
  49.   
  50.   <!-- load a page of a section if page is not available load index page 
  51.     of this section, plain XML
  52.   -->
  53.  
  54.     <map:resource name="xml-view">
  55.         <map:generate src="{src}"/>
  56.         <map:transform src="transforms/xml2html.xslt"/>
  57.         <map:serialize />
  58.     </map:resource>
  59.     
  60.     <map:resource name="html-view">
  61.         <map:generate src="{src}"/>
  62.         <map:serialize />
  63.     </map:resource>
  64.     
  65.     <map:resource name="text-view">
  66.         <map:read src="{src}" mime-type="{mime-type}"/>
  67.     </map:resource>
  68.  
  69.     <map:resource name="pix-view">
  70.         <map:read src="{src}" mime-type="{mime-type}"/>
  71.     </map:resource>
  72.     
  73.  
  74.     <map:resource name="svg-view">
  75.             <map:generate src="{src}"/>
  76.             <map:serialize type="svg2jpeg"/>
  77.     </map:resource>
  78.       
  79. </map:resources>
  80.  
  81.     <map:views>
  82.         <map:view name="aggregate" from-label="aggregate">
  83.             <map:serialize type="xml"/>
  84.         </map:view>
  85.     </map:views>
  86.  
  87.     <!-- ======= Pipelines ======= -->
  88.     <map:pipelines>
  89.  
  90.  
  91.         <map:pipeline>
  92.     
  93.             <map:match pattern="*._xmap">
  94.                 <map:act type="request">
  95.                      <map:parameter name="parameters" value="true"/>
  96.                     <map:call resource="xml-view">
  97.                          <map:parameter name="src" value="../{location}/{../1}.xmap"/>
  98.                     </map:call>
  99.                  </map:act>
  100.             </map:match>
  101.  
  102.         </map:pipeline>
  103.         
  104.         <map:pipeline>
  105.  
  106.             <map:match pattern="*.xml">
  107.                 <map:act type="request">
  108.                     <map:parameter name="parameters" value="true"/>
  109.                     <map:call resource="xml-view">
  110.                         <map:parameter name="src" value="../{location}/{../1}.xml"/>
  111.                     </map:call>
  112.                 </map:act>
  113.             </map:match>
  114.             
  115.             <map:match pattern="*.xsp">
  116.                 <map:act type="request">
  117.                     <map:parameter name="parameters" value="true"/>
  118.                     <map:call resource="xml-view">
  119.                         <map:parameter name="src" value="../{location}/{../1}.xsp"/>
  120.                     </map:call>
  121.                 </map:act>
  122.             </map:match>
  123.             <map:match pattern="*.xsl">
  124.                 <map:act type="request">
  125.                     <map:parameter name="parameters" value="true"/>
  126.                     <map:call resource="xml-view">
  127.                         <map:parameter name="src" value="../{location}/{../1}.xsl"/>
  128.                     </map:call>
  129.                 </map:act>
  130.             </map:match>
  131.             <map:match pattern="*.xslt">
  132.                 <map:act type="request">
  133.                     <map:parameter name="parameters" value="true"/>
  134.                     <map:call resource="xml-view">
  135.                         <map:parameter name="src" value="../{location}/{../1}.xslt"/>
  136.                     </map:call>
  137.                 </map:act>
  138.             </map:match>
  139.             <map:match pattern="*.xhtml">
  140.                 <map:act type="request">
  141.                     <map:parameter name="parameters" value="true"/>
  142.                     <map:call resource="html-view">
  143.                         <map:parameter name="src" value="../{location}/{../1}.xhtml"/>
  144.                     </map:call>
  145.                 </map:act>
  146.             </map:match>
  147.             <map:match pattern="*.html">
  148.                 <map:act type="request">
  149.                     <map:parameter name="parameters" value="true"/>
  150.                     <map:call resource="html-view">
  151.                         <map:parameter name="src" value="../{location}/{../1}.html"/>
  152.                     </map:call>
  153.                 </map:act>
  154.             </map:match>
  155.             <map:match pattern="*.htm">
  156.                 <map:act type="request">
  157.                     <map:parameter name="parameters" value="true"/>
  158.                     <map:call resource="html-view">
  159.                         <map:parameter name="src" value="../{location}/{../1}.htm"/>
  160.                     </map:call>
  161.                 </map:act>
  162.             </map:match>
  163.             <map:match pattern="*.svg">
  164.                 <map:act type="request">
  165.                     <map:parameter name="parameters" value="true"/>
  166.                     <map:call resource="svg-view">
  167.                         <map:parameter name="src" value="../{location}/{../1}.svg"/>
  168.                     </map:call>
  169.                 </map:act>
  170.             </map:match>
  171.             <map:match pattern="*.gif">
  172.                 <map:act type="request">
  173.                     <map:parameter name="parameters" value="true"/>
  174.                     <map:call resource="pix-view">
  175.                         <map:parameter name="src" value="../{location}/{../1}.gif"/>
  176.                         <map:parameter name="mime-type" value="image/gif" />
  177.                     </map:call>
  178.                 </map:act>
  179.             </map:match>
  180.             <map:match pattern="*.jpg">
  181.                 <map:act type="request">
  182.                     <map:parameter name="parameters" value="true"/>
  183.                     <map:call resource="pix-view">
  184.                         <map:parameter name="src" value="../{location}/{../1}.jpg"/>
  185.                         <map:parameter name="mime-type" value="image/jpeg" />
  186.                     </map:call>
  187.                 </map:act>
  188.             </map:match>
  189.             <map:match pattern="*.png">
  190.                 <map:act type="request">
  191.                     <map:parameter name="parameters" value="true"/>
  192.                     <map:call resource="pix-view">
  193.                         <map:parameter name="src" value="../{location}/{../1}.png"/>
  194.                         <map:parameter name="mime-type" value="image/png" />
  195.                     </map:call>
  196.                 </map:act>
  197.             </map:match>
  198.             <map:match pattern="*.ico">
  199.                 <map:act type="request">
  200.                     <map:parameter name="parameters" value="true"/>
  201.                     <map:call resource="pix-view">
  202.                         <map:parameter name="src" value="../{location}/{../1}.ico"/>
  203.                         <map:parameter name="mime-type" value="image/icon" />
  204.                     </map:call>
  205.                 </map:act>
  206.             </map:match>
  207.             <map:match pattern="*.css">
  208.                 <map:act type="request">
  209.                     <map:parameter name="parameters" value="true"/>
  210.                     <map:call resource="text-view">
  211.                         <map:parameter name="src" value="../{location}/{../1}.css"/>
  212.                         <map:parameter name="mime-type" value="text/txt" />
  213.                     </map:call>
  214.                 </map:act>
  215.             </map:match>
  216.             <map:match pattern="*.js">
  217.                 <map:act type="request">
  218.                     <map:parameter name="parameters" value="true"/>
  219.                     <map:call resource="text-view">
  220.                         <map:parameter name="src" value="../{location}/{../1}.js"/>
  221.                         <map:parameter name="mime-type" value="text/txt" />
  222.                     </map:call>
  223.                 </map:act>
  224.             </map:match>
  225.  
  226.             <map:match pattern="*.txt">
  227.                 <map:act type="request">
  228.                     <map:parameter name="parameters" value="true"/>
  229.                     <map:call resource="text-view">
  230.                         <map:parameter name="src" value="../{location}/{../1}.txt"/>
  231.                         <map:parameter name="mime-type" value="text/txt" />
  232.                     </map:call>
  233.                 </map:act>
  234.             </map:match>
  235.  
  236.             <map:match pattern="*.xlex">
  237.                 <map:act type="request">
  238.                     <map:parameter name="parameters" value="true"/>
  239.                     <map:call resource="text-view">
  240.                         <map:parameter name="src" value="../{location}/{../1}.xlex"/>
  241.                         <map:parameter name="mime-type" value="text/txt" />
  242.                     </map:call>
  243.                 </map:act>
  244.             </map:match>
  245.  
  246. <!--
  247.             <map:match pattern="**/*.xmap">
  248.                 <map:act type="request">
  249.                     <map:parameter name="parameters" value="true"/>
  250.                     <map:redirect-to uri="../{../2}.xmap?location={location}"/>
  251.                  </map:act>
  252.             </map:match>
  253.             
  254.  
  255.             <map:match pattern="**/*.*">
  256.                 <map:act type="request">
  257.                     <map:parameter name="parameters" value="true"/>
  258.                     <map:redirect-to uri="../{../2}.xmap?location={location}"/>
  259.                  </map:act>
  260.                 <map:redirect-to uri="../{2}.{3}?location={1}"/>
  261.             </map:match>
  262.  
  263. -->            
  264.  
  265.         </map:pipeline>
  266.  
  267.     </map:pipelines>
  268. </map:sitemap>
  269.