CssColumnSite

Articles

More

Links

FilterLink Tutorial

This document describes usage and adoption of the filterlink.xsl stylesheet used by CssColumnSite.

Usage Scenario

The filterlink.xsl stylesheet is used if a page is requested using the http parameter cocoon-view=links. Cocoon provides views for making intra-pipeline results available. In this case the intra-pipelines result is a list of outbound links of the requested page.

The view links is used in the Cocoon CLI/ant invocation for crawling and generating a static version of a site.

Sitemap Declaration

The view links is defined in the view section of the sitemap. The following sitemap snippet shows the CssColumnSite definition.

...
<map:view name="links" from-position="last">
 <map:transform src="stylesheets/filterlinks.xsl"/>
 <map:serialize type="links"/>
</map:view>
...

The from-position attributes defines the intra-pipeline point from where this view obtains its xml-content. In this case the intra-pipeline point last is used, obtaining the xml-content just before the serialization step of the pipeline.

The filterlink.xsl operates on this xml-content; it should remove all links which should not be part of the overall crawling process, especially external links are removed.


  [Next]

PDF
filterlink-tutorial

Hints

» Use Search to search all documents.
» Use Recreate Index to create the inital index. This may be neccessary once at startup.

» Search and Recreate Index are available at HTML Cocoon online deployment, only.
» Search and Recreate Index are not available on WML online, WML offline, and HTML offline deployments.