<?xml version="1.0"?> | |
<!-- | |
This stylesheet filters all references which should | |
be ignored by any cocoon link crawling | |
--> | |
<xsl:stylesheet | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
version="1.0"> | |
<xsl:template match="@href"> | |
<xsl:if test="not(contains(.,'.zip'))"> | |
<xsl:copy> | |
<xsl:apply-templates select="."/> | |
</xsl:copy> | |
</xsl:if> | |
</xsl:template> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@*|node()"/> | |
</xsl:copy> | |
</xsl:template> | |
</xsl:stylesheet> |