[Erp5-report] r32305 aurel - in /erp5/trunk/bt5/erp5_rss_reader: SkinTemplateItem/portal_sk...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 8 10:35:36 CET 2010
Author: aurel
Date: Mon Feb 8 10:35:35 2010
New Revision: 32305
URL: http://svn.erp5.org?rev=32305&view=rev
Log:
make the xslt work with Atom feed
Thanks to Nicolas
Modified:
erp5/trunk/bt5/erp5_rss_reader/SkinTemplateItem/portal_skins/erp5_rss_reader/RSSFeed_getAggregatedImportXSLT.xml
erp5/trunk/bt5/erp5_rss_reader/bt/revision
Modified: erp5/trunk/bt5/erp5_rss_reader/SkinTemplateItem/portal_skins/erp5_rss_reader/RSSFeed_getAggregatedImportXSLT.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_rss_reader/SkinTemplateItem/portal_skins/erp5_rss_reader/RSSFeed_getAggregatedImportXSLT.xml?rev=32305&r1=32304&r2=32305&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_rss_reader/SkinTemplateItem/portal_skins/erp5_rss_reader/RSSFeed_getAggregatedImportXSLT.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_rss_reader/SkinTemplateItem/portal_skins/erp5_rss_reader/RSSFeed_getAggregatedImportXSLT.xml [utf8] Mon Feb 8 10:35:35 2010
@@ -43,19 +43,20 @@
<xsl:param name="subject_list" select="None"/>\n
<xsl:param name="actor" select="None"/>\n
\n
-\n
<!--Template matching the erp5 Tag-->\n
<xsl:template match="/">\n
<erp5>\n
- <xsl:apply-templates select="//item|//entry"/> \n
+ <xsl:apply-templates/> \n
</erp5>\n
</xsl:template>\n
\n
+<xsl:template match="text()"/>\n
+\n
<!--Template maching the item Tag-->\n
-<xsl:template match="item|entry">\n
+<xsl:template match="item|*[local-name() = \'entry\']">\n
<xsl:variable name="md5_id">\n
<xsl:choose>\n
- <xsl:when test="title|dc:title"><xsl:value-of select="title|dc:title"/></xsl:when>\n
+ <xsl:when test="*[local-name() = \'title\']"><xsl:value-of select="*[local-name() = \'title\']"/></xsl:when>\n
<xsl:when test="link"><xsl:value-of select="link|link/@href"/></xsl:when>\n
<xsl:otherwise><xsl:value-of select="description|dc:description"/></xsl:otherwise>\n
</xsl:choose>\n
@@ -65,7 +66,7 @@
<id type="string"><xsl:value-of select="$converted_id"/></id>\n
<rid type="string"><xsl:value-of select=\'$rid\'/></rid>\n
<categories_list type="tokens"><xsl:value-of select="$categories_list"/></categories_list>\n
- <title type="string"><xsl:value-of select="title|dc:title"/></title>\n
+ <title type="string"><xsl:value-of select="*[local-name() = \'title\']"/></title>\n
<subject_list type="lines"><xsl:value-of select="$subject_list"/></subject_list>\n
<description type="text"><xsl:value-of select="description|dc:description|content"/><xsl:apply-templates select=\'summary\'/></description>\n
<url_text>\n
@@ -86,7 +87,6 @@
</workflow_action>\n
</object>\n
</xsl:template>\n
- \n
<xsl:template match="summary">\n
<xsl:apply-templates/>\n
</xsl:template>\n
Modified: erp5/trunk/bt5/erp5_rss_reader/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_rss_reader/bt/revision?rev=32305&r1=32304&r2=32305&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_rss_reader/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_rss_reader/bt/revision [utf8] Mon Feb 8 10:35:35 2010
@@ -1,1 +1,1 @@
-209
+210
More information about the Erp5-report
mailing list