You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2014/02/02 23:45:11 UTC
svn commit: r1563740 - in /httpd/httpd/trunk/docs/manual/style/xsl: hhc.xsl
hhp.xsl
Author: nd
Date: Sun Feb 2 22:45:11 2014
New Revision: 1563740
URL: http://svn.apache.org/r1563740
Log:
ignore external references in the sitemap
Modified:
httpd/httpd/trunk/docs/manual/style/xsl/hhc.xsl
httpd/httpd/trunk/docs/manual/style/xsl/hhp.xsl
Modified: httpd/httpd/trunk/docs/manual/style/xsl/hhc.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/hhc.xsl?rev=1563740&r1=1563739&r2=1563740&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/hhc.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/hhc.xsl Sun Feb 2 22:45:11 2014
@@ -134,6 +134,7 @@
<!-- 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" -->
@@ -168,6 +169,7 @@
<xsl:apply-templates select="self::page" mode="index" />
&li.end; &lf;&tab;
+</xsl:if>
</xsl:template>
<!-- /category/page -->
Modified: httpd/httpd/trunk/docs/manual/style/xsl/hhp.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/hhp.xsl?rev=1563740&r1=1563739&r2=1563740&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/hhp.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/hhp.xsl Sun Feb 2 22:45:11 2014
@@ -159,6 +159,7 @@
<!-- 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,
@@ -177,6 +178,7 @@
</xsl:variable>
<xsl:value-of select="translate($filename, '/', '\')" />&lf;
+</xsl:if>
</xsl:template>
<!-- /page[@href] -->