svn commit: r603887 - /lenya/trunk/src/modules/news/xslt/collection2xhtml.xsl
| 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>