⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sitemap.xmap

📁 Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是供中,大型企业来管理其发布在互连网
💻 XMAP
📖 第 1 页 / 共 2 页
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 2001-2008 Hippo (www.hippo.nl)

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  <map:components>
    <map:generators>
       <map:generator label="content" logger="sitemap.generator.jspack"
                name="jspack-generator" pool-grow="4" pool-max="32" 
								pool-min="4" 
								src="nl.hippo.cms.javascript.JavascriptPackageGenerator" />
    </map:generators>
    <map:transformers default="xslt">
	    <map:transformer name="stripnamespaces" src="org.apache.cocoon.transformation.StripNameSpacesTransformer"/>
            <map:transformer
                name="i18n"
                src="org.apache.cocoon.transformation.I18nTransformer">
                <catalogues default="other">
                	<catalogue id="other" name="messages">
                		<location>cocoon://extensions/translations</location>
                		<location>translations</location>
                	</catalogue>
                </catalogues>
                <cache-at-startup>false</cache-at-startup>
            </map:transformer> 
            <map:transformer name="jspack" src="nl.hippo.cms.javascript.JavascriptPackageTransformer"
              logger="sitemap.transformer.jspack"/>
    </map:transformers>
    <map:serializers>
      <map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
        <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
        <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
        <encoding>UTF-8</encoding>
      </map:serializer>
    </map:serializers>
    <map:pipes default="noncaching"/>
  </map:components>

  <!-- =========================== Views ===================================== -->

  <map:views>
    <map:view name="content" from-label="content">
      <map:serialize type="xml"/>
    </map:view>
    <map:view name="data" from-label="data">
      <map:serialize type="xml"/>
    </map:view>
  </map:views>

  <!-- ========================== Flowscript ================================= -->
  
  <map:flow language="javascript"/>
  
  <!-- ========================== Pipelines ================================= -->

  <map:pipelines>
    
    <map:pipeline type="ecaching" internal-only="false">
      <!-- when using extensions but not in the repository -->
      <map:match pattern="extensions-configuration/**/component.xml">
          <map:generate src="cocoon://extensions/extensions-configuration/{1}/component.xml"/>
          <map:serialize type="xml"/>
      </map:match>
      
      <map:match pattern="extensions-configuration/**">
          <map:generate src="cocoon://extensions/extensions-configuration/{1}/component.xml"/>  
          <map:serialize type="xml"/>
      </map:match>
      
      <!-- for iframe that don't have a real src -->
      <map:match pattern="blank.html">
        <map:generate src="empty.xml"/>
        <map:transform src="transformers/blank.xsl"/>
        <map:serialize type="html"/>  
      </map:match>      
    </map:pipeline>
    
    <map:pipeline type="noncaching" internal-only="false">
      
      <!-- Maybe split it into 
        1) calling the configuration pipeline with a folder source
           will load the specified component configuration
        2) calling the configuration pipeline with a file source
           provides a way to load component specific configuration files
      -->         
      <map:match pattern="standard-configuration/**.xml">
        <map:select type="resource-exists">
          <map:when test="standard-configuration/{1}.xml">
            <map:generate src="standard-configuration/{1}.xml"/>
          </map:when>
          <map:otherwise>
            <map:generate src="empty.xml"/>
          </map:otherwise>
        </map:select>
        <map:transform src="transformers/components-config-to-include.xsl"/>
        <map:transform type="include" />
        <map:serialize type="xml"/>
      </map:match>
      
      <map:match pattern="standard-configuration/**">
        <map:generate src="cocoon:/standard-configuration/{1}/component.xml" />
        <map:serialize type="xml"/>
      </map:match>
      
      <!-- 
        Transforms a webdav OPTIONS request on resource (/configuration/{1}.xml) into include or empty/unauthorized element.
        - if <header:allow> contains GET and status=200, include pipeline in map:parameter configurationFromRP
        - if resource is not found and status=20, include pipeline in map:parameter configurationFromFS
        - else return empty/unautorized element
       -->
      <map:match pattern="repository-configuration/**.xml">
        <map:generate src="jx/fileProperties.jx" type="jx">
          <map:parameter name="target" value="{repository:files}/configuration/{1}.xml"/>
          <map:parameter name="depth" value="0"/>
        </map:generate> 
        <map:transform type="webdav" />
        <map:transform src="transformers/webdav2include.xsl">
          <map:parameter name="configurationFromFS" value="cocoon:/standard-configuration/{1}.xml" />
          <map:parameter name="configurationFromRP" value="cocoon:/loadFromRepository/configuration/{1}.xml" />
        </map:transform>
        <map:transform type="include" />
        <map:transform src="transformers/components-config-to-include.xsl"/>
        <map:transform type="include" />
        <map:transform type="stripnamespaces"/>
        <map:serialize type="xml"/>
      </map:match>  
      
    
      <map:match pattern="loadFromRepository/**.xml">
        <map:select type="resource-exists">
          <map:when test="{repository:files}/{1}.xml">
            <map:generate src="{repository:files}/{1}.xml"/>
          </map:when>
          <map:otherwise>
            <map:generate src="empty.xml" />
          </map:otherwise>
        </map:select>
        <map:serialize type="xml"/>
      </map:match>
      
      <map:match pattern="repository-configuration/**">
        <map:generate src="cocoon:/repository-configuration/{1}/component.xml" />
        <map:serialize type="xml"/>
      </map:match>  
      
    </map:pipeline>

    <!-- public noncaching pipeline -->
    <map:pipeline type="noncaching">
      
      <map:match pattern="isUserAuthenticated.xml">
        <map:act type="set-header">
          <map:parameter name="Pragma" value="no-cache"/>
          <map:parameter name="Cache-Control" value="max-age=0, no-cache, must-revalidate"/>
          <map:parameter name="Expires" value="Thu, 9 Nov 1989 22:00:00 GMT"/>
        </map:act>
        <map:generate src="jx/keepalive.jx" type="jx">
          <map:parameter name="target" value="{repository:files}/content"/>
          <map:parameter name="depth" value="0"/>
        </map:generate> 
        <map:transform type="webdav" />
        <map:transform src="transformers/webdav2authorized.xsl"/>
        <map:serialize type="xml"/>
      </map:match>  

      <map:handle-errors>
        <map:generate type="notifying"/>
        <map:transform src="transformers/error2authorized.xsl">
          <map:parameter name="errorCode" value="500"/>
        </map:transform>            
        <map:serialize type="xml"/>
      </map:handle-errors>
      
    </map:pipeline>

    <map:pipeline type="noncaching" internal-only="false">
      <map:parameter name="expires" value="now"/>

      <map:match pattern="clipboard/**">
        <map:mount src="clipboard/sitemap.xmap" uri-prefix="clipboard"/>
      </map:match>
      
      
      <!-- Main application configuration starting point  -->
      <map:match pattern="LoadConfiguration/*">
        <!-- check for repo app config -->
        <map:generate src="cocoon:/repository-configuration/{1}"/>
        <map:transform src="transformers/components-config-to-include.xsl"/>
        <map:transform type="include" />
        <map:transform src="transformers/cleanup-components-config.xsl"/>
        <map:transform type="i18n">
          <map:parameter name="locale" value="{session-attr:locale}"/>
        </map:transform>
        <map:serialize type="xml"/>
      </map:match>
      
      <!-- Better is: generate app-config and list all className's, filter duplicates
           and create script tag's
      -->      
      <map:match pattern="LoadScripts/*">
        <map:generate src="cocoon:/LoadConfiguration/{1}"/>
        <map:transform src="transformers/components-sources-to-javascript-includes.xsl">
          <map:parameter name="context" value="{1}"/>
          <map:parameter name="defaultClassPath" value="/workbench/js/hippo/"/>
        </map:transform>  
        <map:serialize type="xml"/>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -