CssColumnSite

Articles

More

Links

CssColumnSite Adoption

As noted above filterlinks.xsl removes external links. CssColumnSite allows you to download a zip file csscolumnsite.zip. The link to this zip file is defined for the index.html page.

The zip file is generated by the ant target building the static content of this site, after the static content generation, thus crawling this zip file will fails during the Cocoon CLI/ant processing..

To avoid trying to visiting the zip link during the generation filterlink.xsl removes links containing the string '.zip'.

The filterlink.xsl stylesheet snipping filtering zip links.

...
<xsl:template match="@src|@href|@background">
  <xsl:if test="not(contains(.,'.zip'))">
    <xsl:copy>
      <xsl:apply-templates select="."/>
    </xsl:copy>
  </xsl:if>
</xsl:template>
...

Note The LinkSerializer removes some more links, like links starting with mailto:, links containing ://, etc.
Note By the way, even if the zip file is available during the generation process, the sitemap is missing a matcher for zip pattern in the sitemap.


[Back]  

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.