<!-- category/page -->
<!-- ==================================================================== -->
<xsl:template match="category/page">
+<xsl:if test="not(starts-with(@href,'http:') or starts-with(@href, 'https:'))">
&li.start;
<!-- document entry, if not href attribute, assume it means "sitemap" -->
<xsl:apply-templates select="self::page" mode="index" />
&li.end; &lf;&tab;
+</xsl:if>
</xsl:template>
<!-- /category/page -->
<!-- files referenced in sitemap -->
<!-- ==================================================================== -->
<xsl:template match="category/page">
+<xsl:if test="not(starts-with(@href,'http:') or starts-with(@href, 'https:'))">
<xsl:variable name="filename">
<xsl:choose>
<xsl:when test="contains(@href, '#') and substring(@href,
</xsl:variable>
<xsl:value-of select="translate($filename, '/', '\')" />&lf;
+</xsl:if>
</xsl:template>
<!-- /page[@href] -->