:
 
 
In the enterprise EP development process, the use of RSS is very common.
 
In the above example, two webparts are used in Moss (content editing webpart + RSS webpart)
 
We will not introduce the content editing webpart. Very easy
 
For RSS webpart, you only need to configure RSS link on the toolbar panel.
 
For example, http: // 10.5.16.16/ACD/EFG/abcdeff/rss_ldjh.jsp is a standard RSS source.
 
The RSS style is as follows:
 
A certain degree of XSL is required.
 
 
<XSL: stylesheet xmlns: x = "http://www.w3.org/2001/XMLSchema"
Version = "1.0" exclude-result-prefixes = "XSL ddwrt msxsl rssaggwrt"
Xmlns: ddwrt = "http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
Xmlns: rssaggwrt = "http://schemas.microsoft.com/WebParts/v3/rssagg/runtime"
Xmlns: XSL = "http://www.w3.org/1999/XSL/Transform" xmlns: msxsl = "urn: Schemas-Microsoft-com: XSLT"
Xmlns: rssfeed = "urn: Schemas-Microsoft-com: SharePoint: rssaggregatorwebpart"
Xmlns: RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns: DC = "http://purl.org/dc/elements/1.1"
Xmlns: rss1 = "http://purl.org/rss/1.0/" xmlns: Atom = "http://www.w3.org/2005/Atom"
Xmlns: iTunes = "http://www.itunes.com/dtds/podcast-1.0.dtd"
Xmlns: atom2 = "http://purl.org/atom/ns#" xmlns: ddwrt2 = "urn: FrontPage: Internal">
<XSL: template match = "/" xmlns: x = "http://www.w3.org/2001/XMLSchema" xmlns: rssfeed = "urn: Schemas-Microsoft-com: SharePoint: rssaggregatorwebpart" xmlns: RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns: DC = "http://purl.org/dc/elements/1.1/" xmlns: rss1 = "http://purl.org/rss/1.0/" xmlns: Atom = "http://www.w3.org/2005/Atom" xmlns: iTunes = "http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns: atom2 = "http://purl.org/atom/ns#">
 
<XSL: For-each select = "RSS/channel/item">
<XSL: If test = "position () & lt; 5">
<Table Style = "width: 95%" border = "0" cellpadding = "2" cellspacing = "1">
<Tr align = "Left">
<TD> </TD>
<TD style = "width: 90%"> <a href = '{link}' target = "_ blank" Title = '{Title}'> <nobr> <XSL: value-of select = "substring (title, 1, 12)"/> </nobr> </a>
</TD> </tr>
</Table>
 
</XSL: If>
</XSL: For-each>
</XSL: Template>
 
</XSL: stylesheet>
 
 
 
 
 
It's really easy
 
Standard
 
 
<XSL: stylesheet xmlns: x = "http://www.w3.org/2001/XMLSchema" 
Version = "1.0" exclude-result-prefixes = "XSL ddwrt msxsl rssaggwrt" 
Xmlns: ddwrt = "http://schemas.microsoft.com/WebParts/v2/DataView/runtime" 
Xmlns: rssaggwrt = "http://schemas.microsoft.com/WebParts/v3/rssagg/runtime" 
Xmlns: XSL = "http://www.w3.org/1999/XSL/Transform" xmlns: msxsl = "urn: Schemas-Microsoft-com: XSLT" 
Xmlns: rssfeed = "urn: Schemas-Microsoft-com: SharePoint: rssaggregatorwebpart" 
Xmlns: RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns: DC = "http://purl.org/dc/elements/1.1" 
Xmlns: rss1 = "http://purl.org/rss/1.0/" xmlns: Atom = "http://www.w3.org/2005/Atom" 
Xmlns: iTunes = "http://www.itunes.com/dtds/podcast-1.0.dtd" 
Xmlns: atom2 = "http://purl.org/atom/ns#" xmlns: ddwrt2 = "urn: FrontPage: Internal"> 
<XSL: template match = "/" xmlns: x = "http://www.w3.org/2001/XMLSchema" xmlns: rssfeed = "urn: Schemas-Microsoft-com: SharePoint: rssaggregatorwebpart" xmlns: RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns: DC = "http://purl.org/dc/elements/1.1/" xmlns: rss1 = "http://purl.org/rss/1.0/" xmlns: Atom = "http://www.w3.org/2005/Atom" xmlns: iTunes = "http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns: atom2 = "http://purl.org/atom/ns#"> 
<XSL: For-each select = "RSS/channel"> 
<Div style = "border-bottom: solid #000033 1px; font-size: 14px; Height: 22px; line-height: 22px "> <a href =" {link} "target =" _ blank "Title =" {description} "> <B> <XSL: value-of select = "title"/> </B> </a> </div> 
</XSL: For-each> 
<XSL: For-each select = "RSS/channel/item"> 
<XSL: If test = "position () & lt; 10"> 
<Div style = "border-bottom: solid 1px # cccccc; padding-top: 5px; text-overflow: ellipsis; overflow: hidden; width: 220px "> <a href = '{link}' target =" _ blank "Title = '{Title}'> <nobr> <XSL: value-of select = "title"/> </nobr> </a> </div> 
</XSL: If> 
</XSL: For-each> 
</XSL: Template> 
 
</XSL: stylesheet>