You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2006/02/22 16:29:18 UTC
svn commit: r379793 - /lenya/trunk/src/modules/xhtml/xslt/xhtml2index.xsl
Author: chestnut
Date: Wed Feb 22 07:29:14 2006
New Revision: 379793
URL: http://svn.apache.org/viewcvs?rev=379793&view=rev
Log:
Add delimeter between text nodes
Modified:
lenya/trunk/src/modules/xhtml/xslt/xhtml2index.xsl
Modified: lenya/trunk/src/modules/xhtml/xslt/xhtml2index.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/xhtml/xslt/xhtml2index.xsl?rev=379793&r1=379792&r2=379793&view=diff
==============================================================================
--- lenya/trunk/src/modules/xhtml/xslt/xhtml2index.xsl (original)
+++ lenya/trunk/src/modules/xhtml/xslt/xhtml2index.xsl Wed Feb 22 07:29:14 2006
@@ -25,7 +25,11 @@
</xsl:template>
<xsl:template match="xhtml:body" priority="1">
- <lucene:field name="body" boost="{$boost}"><xsl:value-of select="descendant-or-self::*"/></lucene:field>
+ <lucene:field name="body" boost="{$boost}">
+ <xsl:for-each select=".//text()">
+ <xsl:value-of select="concat(normalize-space(.),' ')"/>
+ </xsl:for-each>
+ </lucene:field>
</xsl:template>
<xsl:template match="dc:title" priority="1">
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org