📄 sitemap.xmap
字号:
<?xml version="1.0"?>
<!--
Copyright 2001-2007 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.
-->
<!-- ========================= Explorer subsitemap ============================== -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:transformers default="xslt">
<map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="messages">
<catalogue id="messages" name="messages">
<location>cocoon://extensions/translations</location>
<location>translations</location>
</catalogue>
</catalogues>
<cache-at-startup>false</cache-at-startup>
</map:transformer>
</map:transformers>
</map:components>
<!-- ========================== Flowscript ================================= -->
<map:flow language="javascript">
<map:script src="flow/explorer.js"/>
</map:flow>
<!-- =========================== Views ===================================== -->
<map:views>
<map:view name="nodetree" from-label="nodetree">
<map:serialize type="xml"/>
</map:view>
<map:view name="webdav" from-label="webdav">
<map:serialize type="xml"/>
</map:view>
</map:views>
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
<!-- ========================= Private Resources =========================== -->
<map:pipeline type="noncaching" internal-only="false">
<map:match pattern="*.jx">
<map:generate type="jx" src="jx/{1}.xml"/>
<map:transform type="include"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="maketree/**">
<map:match pattern="maketree/rights/**">
<map:call function="trees">
<map:parameter name="path" value="/{1}"/>
<map:parameter name="sources" value="{repository:filesPath},{repository:usersPath},{repository:rolesPath}" />
<map:parameter name="perspective" value="{request-param:perspectiveId}"/>
<map:parameter name="template" value="trees.jx"/>
</map:call>
</map:match>
</map:match>
</map:pipeline>
<!-- ========================= Public Resources ============================ -->
<map:pipeline type="noncaching" internal-only="false">
<!-- perspective header and body -->
<map:match pattern="perspective.html">
<map:generate src="sitemap.xmap"/>
<map:transform src="transformers/perspective.xsl">
</map:transform>
<map:serialize type="html"/>
</map:match>
<!-- folder tree pane -->
<map:match pattern="tree/**">
<map:generate src="cocoon:/maketree/rights/{1}" label="webdav"/>
<!-- [JR] Remove all resources before transforming all collections to tree -->
<map:transform src="transformers/util/removeresources.xsl" />
<map:transform src="transformers/util/propfind2trees.xsl" label="nodetree">
<map:parameter name="prefix" value="{repository:rootPath}"/>
<map:parameter name="href" value="/{1}"/>
<map:parameter name="foldersOnly" value="true"/>
<map:parameter name="sources" value="{repository:filesPath},{repository:usersPath},{repository:rolesPath}"/>
</map:transform>
<map:transform src="transformers/tree/tree2html.xsl">
<map:parameter name="prefix" value="{repository:rootPath}"/>
<map:parameter name="rootNode" value=""/>
<map:parameter name="targetNode" value="/{1}"/>
<map:parameter name="currentPath" value="{request-param:currentPath}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{session-attr:locale}"/>
<map:parameter name="default-catalogue-id" value="messages"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -