📄 sitemap.xmap
字号:
<?xml version="1.0"?>
<!--
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.
-->
<!-- ========================= 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="other">
<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>
<map:flow language="javascript">
<map:script src="clipboard.js"/>
</map:flow>
<map:pipelines>
<!-- ========================= Private Resources =========================== -->
<map:pipeline type="noncaching" internal-only="true">
</map:pipeline>
<!-- ========================= Public Resources ============================ -->
<map:pipeline type="noncaching" internal-only="false">
<!-- css -->
<map:match pattern="css/**.css">
<map:read src="resources/css/{1}.css" mime-type="text/css"/>
</map:match>
<!-- images -->
<map:match pattern="images/**">
<map:read src="resources/images/{1}"/>
</map:match>
<!-- js -->
<map:match pattern="js/**.js">
<map:read src="resources/js/{1}.js" mime-type="text/javascript"/>
</map:match>
<map:match pattern="clipboard.html">
<map:generate type="jx" src="jx/clipboard.xhtml"/>
<map:transform type="i18n">
<map:parameter name="locale" value="{session-attr:locale}"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
<map:match pattern="write-xml">
<map:call function="string2xml">
<map:parameter name="xmlAsString" value="{request-param:clipboardContents}"/>
<map:parameter name="listElementName" value="{request-param:listElementName}"/>
</map:call>
</map:match>
<map:match pattern="dom2xml">
<map:generate src="jx/dom2xml.xml" type="jx"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="propfind">
<map:generate src="cocoon:/write-xml"/>
<map:transform src="transformers/include.xsl">
<map:parameter name="uriPrefix" value="{request-param:uriPrefix}"/>
<map:parameter name="uriPostfix" value="{request-param:uriPostfix}"/>
<map:parameter name="listElementName" value="{request-param:listElementName}"/>
<map:parameter name="itemElementName" value="{request-param:itemElementName}"/>
<map:parameter name="uriAttributeName" value="{request-param:uriAttributeName}"/>
</map:transform>
<map:transform type="include"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="clipboard-getinfo">
<map:generate src="cocoon:/propfind"/>
<map:transform src="transformers/propfind2javascript.xsl">
<map:parameter name="import" value="{request-param:import}"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
<map:match pattern="list-captions">
<map:generate src="cocoon:/propfind"/>
<map:transform src="transformers/propfind2html.xsl"/>
<map:serialize type="html"/>
</map:match>
<!-- [JR] Add session based Clipboard to the CMS -->
<map:match pattern="external-shelf.html">
<map:call function="showShelf"/>
</map:match>
<map:match pattern="replace-shelf.html">
<map:call function="showShelf">
<map:parameter name="view" value="replace"/>
</map:call>
</map:match>
<map:match pattern="replace-shelf">
<map:generate type="jx" src="jx/session-shelf.jx"/>
<map:transform type="include"/>
<map:transform src="transformers/replace-list.xsl">
<map:parameter name="uriPrefix" value="{repository:filesPath}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{session-attr:locale}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="external-shelf">
<map:generate type="jx" src="jx/external-shelf.xhtml"/>
<map:transform type="include"/>
<map:transform src="transformers/list.xsl">
<map:parameter name="uriPrefix" value="{repository:filesPath}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{session-attr:locale}"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
<map:match pattern="addShelfItem">
<map:call function="addShelfItem">
<map:parameter name="href" value="{request-param:href}"/>
</map:call>
</map:match>
<map:match pattern="addShelfItems">
<map:call function="addShelfItems">
<map:parameter name="hrefs" value="{request-param:hrefs}"/>
</map:call>
</map:match>
<map:match pattern="removeShelfItem">
<map:call function="removeShelfItem">
<map:parameter name="href" value="{request-param:href}"/>
</map:call>
</map:match>
<map:match pattern="removeShelfItems">
<map:call function="removeShelfItems">
<map:parameter name="hrefs" value="{request-param:hrefs}"/>
</map:call>
</map:match>
<map:match pattern="emptyShelf">
<map:call function="emptyShelf"/>
</map:match>
<!-- / Session based clipboard -->
</map:pipeline>
</map:pipelines>
</map:sitemap>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -