svn commit: r1032832 - /forrest/trunk/main/webapp/resources/stylesheets/book-to-cinclude-lucene.xsl

[email protected]
Newsgroups gmane.text.xml.forrest.cvs
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.