svn commit: r591845 - in /lenya/sandbox/modules/forrest/xslt: forrest2index.xsl forrestDocument202xhtml.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Sun Nov  4 13:55:16 2007
New Revision: 591845

URL: http://svn.apache.org/viewvc?rev=591845&view=rev
Log:
Fixed body indexing

Modified:
    lenya/sandbox/modules/forrest/xslt/forrest2index.xsl
    lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl

Modified: lenya/sandbox/modules/forrest/xslt/forrest2index.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/forrest/xslt/forrest2index.xsl?rev=591845&r1=591844&r2=591845&view=diff
==============================================================================
--- lenya/sandbox/modules/forrest/xslt/forrest2index.xsl (original)
+++ lenya/sandbox/modules/forrest/xslt/forrest2index.xsl Sun Nov  4 13:55:16 2007
@@ -23,7 +23,7 @@
 
 <xsl:template match="dc:rights" priority="1"/>
 
-<xsl:template match="xhtml:body" priority="1">
+<xsl:template match="/*/*[namespace-uri() != 'http://apache.org/cocoon/lenya/metadata/1.0']" priority="1">
   <lucene:field name="body" boost="{$boost}">
     <xsl:for-each select=".//text()">
       <xsl:value-of select="concat(normalize-space(.),' ')"/>

Modified: lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl?rev=591845&r1=591844&r2=591845&view=diff
==============================================================================
--- lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl (original)
+++ lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl Sun Nov  4 13:55:16 2007
@@ -76,7 +76,7 @@
   
   
   <xsl:template match="section/title">
-    <xsl:element name="h{3 + count(ancestor::section)}" namespace="http://www.w3.org/1999/xhtml">
+    <xsl:element name="h{1 + count(ancestor::section)}" namespace="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates/>
     </xsl:element>
   </xsl:template>
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.