Link Serializer
http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Main
User Documentation

Serializers
Overview

Default
HTML Serializer

Core
XHTML Serializer
XML Serializer
Text Serializer
WAP/WML Serializer
SVG Serializer
SVG/XML Serializer
SVG/JPEG Serializer
SVG/PNG Serializer
SVG/TIFF Serializer
VRML Serializer
Link Serializer
Zip archive Serializer

Optional
PDF Serializer
PS Serializer
PCL Serializer
HSSF (XLS) Serializer

Link Serializer

The link serializer generates a list of links using XLink from the sax events. Most XHTML attributes are also supported (href, src, longdesc, background). The mime-type of the output is application/x-cocoon-links. This serializer is required by the link status generator and the command line mode to follow links.

  • Name: links
  • Class: org.apache.cocoon.serialization.LinkSerializer
  • Cacheable: no
Usage

To use the link serializer for the command-line or the link status generator, you need the following entries in your sitemap:

<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>
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.