sitemap.xmap
来自「Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是」· XMAP 代码 · 共 95 行
XMAP
95 行
<?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.
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:generators default="file"/>
<map:transformers default="xslt"/>
<map:serializers default="xhtml"/>
<map:matchers default="wildcard"/>
<map:selectors default="parameter"/>
<map:pipes default="caching"/>
<map:readers default="resource"/>
</map:components>
<!-- ========================== Flowscript ================================= -->
<!-- indicates what flowscript to attach to this sitemap -->
<map:flow language="javascript">
<map:script src="../flow/common-forms.js"/>
<map:script src="flow/spikes.js"/>
</map:flow>
<!-- ========================= Private Resources =========================== -->
<map:pipelines>
<map:pipeline type="noncaching" internal-only="false">
<!-- needed for any CForms -->
<map:match pattern="*-display-pipeline">
<!-- pipeline to show the form -->
<map:generate src="forms/{1}-template.xml"/>
<map:transform type="forms"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<!-- last bits of styling around form -->
<!--map:transform src="../styling/simple-wrapper.xsl"/-->
<map:transform src="../resources/forms-samples-styling.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
<!-- just shows the dom tree generated by CForms xml binding -->
<map:match pattern="showxml">
<map:generate type="jx" src="../forms/result.xml"/>
<map:serialize type="xml"/>
</map:match>
<!-- generates the form dynamically -->
<map:match pattern="*">
<map:call function="handleForm">
<map:parameter name="function" value="{1}"/>
<map:parameter name="form-definition" value="forms/{1}-definition.xml"/>
<map:parameter name="documentURI" value="forms/{1}-data.xml"/>
<map:parameter name="bindingURI" value="forms/{1}-binding.xml"/>
</map:call>
</map:match>
<!-- debug stuff -->
<map:match pattern="resources/**">
<map:read type="resource" src="cocoon://resources/{1}"/>
</map:match>
<map:match pattern="forms/**">
<map:read src="forms/{1}"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?