apache > cocoon
 
Font size:      

Link Serializer (2.1 legacy document)

Warning
This document was copied as is from the Cocoon 2.1 documentation, but has not yet been fully reviewed or moved to its new home.

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>

Comments

add your comments