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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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>
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.