You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/11/04 22:55:17 UTC
svn commit: r591845 - in /lenya/sandbox/modules/forrest/xslt:
forrest2index.xsl forrestDocument202xhtml.xsl
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>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org