For any other twit who's interested, you can radically reduce the size of the
styleshhet for your Twitter feeds, and improve its appearance, by using a
variation on the following in your RSS web part.
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="rss/channel">
<style type="text/css">
.twit_title a {font-size: 1em; color: #111111}
.twit_date {color: #333333;font-style: italic;padding-left:8px}
.twit_list li {padding-bottom: 15px}
</style>
<ul class="twit_list">
<xsl:apply-templates select="item" />
</ul>
</xsl:template>
<xsl:template match="item">
<li><a target="_blank" href="{link}" class="twit_title"><xsl:value-of
select="description" disable-output-escaping="yes"/></a><span
class="twit_date"><xsl:value-of select="substring-before(pubDate,' +0000')"
/></span></li>
</xsl:template>
</xsl:stylesheet>
8<----
Status update: Paul...is trying desperately to redeem himself.
From: [email protected] [mailto:[email protected]] On Behalf Of
Paul Noone
Sent: Thursday, 11 February 2010 11:33 AM
To: ozMOSS
Subject: RE: RSS WebPart exception
Actually, no. All I really needed to do was provide the full URL to the RSS
file. :*
That's what I love about this list: the ability to expose my idiotic errors to
a wide range of peers without feeling the slightest twinge of embarrassment. :D
From: [email protected] [mailto:[email protected]] On Behalf Of
Paul Noone
Sent: Thursday, 11 February 2010 11:28 AM
To: ozMOSS
Subject: RE: RSS WebPart exception
Thanks Wampers. I was trying to connect to a Twitter feed. I did some more
testing with standard RSS and Atom feeds and they seem to work fine.
Maybe the feed is authenticated or the format is different?
In any case, it's opened up a whole new world with the discovery of the RSSBus
web part and then the free Twitter web part from the same site. :)
http://www.lancerobinson.net/articles/10-diy-sharepoint-web-parts.aspx
Regards,
Paul
Online Developer, ICT
CEO Sydney
From: [email protected] [mailto:[email protected]] On Behalf Of
Wampers, Wilson [Talent International]
Sent: Thursday, 11 February 2010 11:20 AM
To: ozMOSS
Subject: RE: RSS WebPart exception
Hi Paul,
R u trying to connect to a corporate (intranet) feed? In that case you might
need to resort to Kerberos authentication or download the feed as an xml file
and feed on that.
Kind Regards,
Wilson Wampers
From: [email protected] [mailto:[email protected]] On Behalf Of
Paul Noone
Sent: Thursday, 11 February 2010 07:49
To: ozMOSS
Subject: RSS WebPart exception
I'm getting an exception when applying changes to an RSS web part.
I figured it was down to ISA so changed the proxy settings in the web.config to
the following with no success.
<proxy usesystemdefault = "true" bypassonlocal="true" />
The exception is as follows. Any ideas??
RssWebPart: Exception handed to HandleRuntimeException.HandleException
System.Security.SecurityException: Request for the permission of type
'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)
at System.Net.HttpRequestCreator.Create(Uri Uri)
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn)
at System.Xml.XmlSecureResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri)
at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String
systemId, String publicId)
at System.Xml.DtdParser.ParseExternalSubset()
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at Microsoft.SharePoint.WebControls.XmlUrlDataSource.FetchData(String
requestUrl)
at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request)
at Microsoft.SharePoint.WebControls.BaseXmlDataSource.GetXmlDocument()
at
Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetHierarchicalDocument(IHierarchicalDataSource
ds)
at
Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetHierarchicalXPathNavigator(IHierarchicalDataSource
ds)
at
Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()
at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()
at
Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator(IDataSource
datasource, Boolean originalData)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXPathNavigator(String
viewPath)
at
Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform()
The action that failed was: Demand The type of the first permission that
failed was: System.Net.WebPermission The first permission that failed was:
<IPermission class="System.Net.WebPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1">
<ConnectAccess> <URI
uri="http://www\.w3\.org/TR/xhtml1/DTD/xhtml1-strict\.dtd"/> </ConnectAccess>
</IPermission> The demand was for: <IPermission
class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" version="1"> <ConnectAccess> <URI
uri="http://www\.w3\.org/TR/xhtml1/DTD/xhtml1-strict\.dtd"/> </ConnectAccess>
</IPermission> The only permitted permissions were: <PermissionSet
class="System.Security.PermissionSet" version="1"> <IPermission
class="System.Security.Permissions.SiteIdentityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"
Site="twitter.com"/> <IPermission
class="System.Security.Permissions.UrlIdentityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"
Url="http://twitter.com/CEO_RE"/> <IPermission
class="System.Security.Permissions.ZoneIdentityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"
Zone="Internet"/> </PermissionSet> The method that caused the failure was:
System.Object GetEntity(System.Uri, System.String, System.Type)
Regards,
Paul
Online Developer, ICT
CEO Sydney
_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss