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/12/13 12:18:49 UTC

svn commit: r603887 - /lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl

Author: andreas
Date: Thu Dec 13 03:18:46 2007
New Revision: 603887

URL: http://svn.apache.org/viewvc?rev=603887&view=rev
Log:
News XSLT: handle XHTML documents where the first paragraph is included in other elements, e.g. <div id=body/>

Modified:
    lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl

Modified: lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl?rev=603887&r1=603886&r2=603887&view=diff
==============================================================================
--- lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl (original)
+++ lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl Thu Dec 13 03:18:46 2007
@@ -84,7 +84,7 @@
         </xsl:variable>
         <a href="{$href}" style="text-decoration: none"><xsl:value-of select="$title"/></a>
       </h2>
-      <xsl:apply-templates select="xhtml:html/xhtml:body/xhtml:p[1]" mode="excerpt"/>
+      <xsl:apply-templates select="xhtml:html/xhtml:body//xhtml:p[1]" mode="excerpt"/>
     </div>
   </xsl:template>
   



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org