forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twilli...@apache.org
Subject svn commit: r1032832 - /forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl
Date Tue, 09 Nov 2010 03:17:17 GMT
Author: twilliams
Date: Tue Nov  9 03:17:16 2010
New Revision: 1032832

URL: http://svn.apache.org/viewvc?rev=1032832&view=rev
Log:
Don't try to index other protocols.  Addresses FOR-703 and FOR-838

Modified:
    forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl

Modified: forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl?rev=1032832&r1=1032831&r2=1032832&view=diff
==============================================================================
--- forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl (original)
+++ forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl Tue Nov  9
03:17:16 2010
@@ -58,9 +58,13 @@ handled by uncommenting the relevant sec
   <xsl:template match="menu-item[starts-with(@href, 'http:')]"/>
 <!-- Ignore absolute http urls -->
   <xsl:template match="menu-item[starts-with(@href, 'https:')]"/>
+<!-- Ignore externals -->
+  <xsl:template match="menu-item[starts-with(@href, 'ext:')]"/>
+<!-- Ignore site protocol -->
+  <xsl:template match="menu-item[starts-with(@href, 'site:')]"/>  
 <!-- Ignore absolute https urls -->
 <!-- For entries whose @href ends in "/", refer to @href/index.lucene -->
-  <xsl:template match="menu-item[substring(@href, string-length(@href) - string-length('/')
+ 1) = '/']">
+  <xsl:template match="menu-item[substring(@href, string-length(@href) - string-length('/')
+ 1) = '/']" priority="-1">
     <cinclude:include>
       <xsl:attribute name="src">
 <xsl:text>cocoon://</xsl:text>



Mime
View raw message