home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Copyright 1999-2004 The Apache Software Foundation
-
- 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.
- -->
- <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "document-v10.dtd">
-
- <document>
- <header>
- <title>Link Serializer</title>
- <version>1.0</version>
- <type>Technical document</type>
- <authors>
- <person name="Carsten Ziegeler" email="cziegeler@apache.org"/>
- <person name="Torsten Knodt" email="tk-cocoon@datas-world.e"/>
- </authors>
- <abstract>This document describes the link serializer of Cocoon.</abstract>
- </header>
- <body>
- <s1 title="Link Serializer">
- <p>The link serializer generates a list of links
- using <link href="http://www.w3.org/TR/xlink/">XLink</link>
- from the sax events.
- Most <link href="http://www.w3.org/MarkUp/">XHTML</link>
- attributes are also supported (href, src, longdesc,
- background). The mime-type of the output is
- <code>application/x-cocoon-links</code>. This serializer is
- required by the link status generator and the command line
- mode to follow links.</p>
- <ul>
- <li>Name: links</li>
- <li>Class: org.apache.cocoon.serialization.LinkSerializer</li>
- <li>Cacheable: no</li>
- </ul>
- </s1>
- <s1 title="Usage">
- <p>To use the link serializer for the command-line or the
- link status generator, you need the following entries in
- your sitemap:</p>
- <source><![CDATA[
- <map:components>
- <map:serializers>
- <map:serializer logger="sitemap.serializer.links" name="links"
- src="org.apache.cocoon.serialization.LinkSerializer" />
- </map:serializers>
- </map:components>
-
- <map:views>
- <map:view from-position="last" name="links">
- <map:serialize type="links" />
- </map:view>
- </map:views>
- ]]></source>
- </s1>
- </body>
- </document>
-