SharePoint: How to display blog feed using XML Web Part?
I wanted to show our company's blog feed on our intranet first page. There some empty space I wanted to fill somehow. I found a good solution, so there was no need for some third-party Web Parts. Also there was no need to write any additional code.
Here's my blog feed example as easy step-by-step guide.
-

Move to SharePoint page you want to add your blog feed.
-
Open this page in edit view and add new Web Part called XML Web Part.
-
If Web Part is added to page then open it's settings window.
-
On the field XML Link insert your blog feed URL. Check out if link is correct and content is receivable by clicking the link titled as Test Link.
-
Push button titled as [XSL Editor].
-
XSL editing window is opened and now insert XSL code given below. When inserted click [OK].
-
If everything is okay then you should see your blog's last titles as bulleted list.
-
If you see your blog entries in bulleted list then it is okay to save edited page.
XSL you need is here. Take it using copy and paste.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="xsl">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
<div>
<xsl:apply-templates select="rss/channel"/>
</div>
</xsl:template>
<xsl:template match="rss/channel">
<xsl:variable name="link" select="link"/>
<xsl:variable name="description" select="description"/>
<ul><xsl:apply-templates select="item"/></ul>
</xsl:template>
<xsl:template match="item">
<xsl:variable name="item_link" select="link"/>
<xsl:variable name="item_title" select="description"/>
<li>
<a href="{$item_link}" title="{$item_title}"><xsl:value-of select="title"/></a>
</li>
</xsl:template>
</xsl:stylesheet>
The result I got in my company's intranet is here.
