The Artima Developer Community
Sponsored Link

.NET Buzz Forum
RSS extensions

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Greg Reinacker

Posts: 276
Nickname: gregr
Registered: Aug, 2003

Greg Reinacker is president of NewsGator Technologies
RSS extensions Posted: Jan 23, 2004 9:14 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Greg Reinacker.
Original Post: RSS extensions
Feed Title: Greg Reinacker's Weblog
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Greg Reinacker's Weblog
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Greg Reinacker
Latest Posts From Greg Reinacker's Weblog

Advertisement

You may not have realized it, but NewsGator 2.0 supports arbitrary RSS extensions. Yep, arbitrary - you can define whatever extension you like, and NewsGator will be able to use it in one way of another. Let's explore how this works, and what you can do.

First, what is a RSS extension? Here's a trivial example. Suppose you have a RSS item:

<item>
<title>My Post</title>
<link>http://example.org/post14.htm</link>
<description>Here is what I have to say.</description>
</item>

Pretty straightforward. But I could add my own data to this item:

<item xmlns:greg="urn:example">
<title>My Post</title>
<link>http://example.org/post14.htm</link>
<description>Here is what I have to say.</description>
<greg:CoolFactor>10</greg:CoolFactor>
</item>

But if I do this, most client tools will completely ignore the CoolFactor element. Until now.

With NewsGator 2.0, there are three different ways you can deal with extensions:

Map data to a column - you can take any extension data and map it to a column in Outlook. For example, I could create a column in Outlook called "coolness", and map the above <CoolFactor> data into that column. I could then not only see it, but sort on it, or whatever else I'd like to do with it. NewsGator users, go to NewsGator/Options, Rendering tab to see these mapping options.

Render custom data in the post body - NewsGator 2.0's rendering engine now uses XSLT, and you can customize the transforms used to render the items. What's more, any custom data (such as the <CoolFactor> element is available to these transforms...so you could have a custom rendering based on this data by building a new stylesheet. For example, change how big the font is based on some value, or have a big blue number in the corner showing the custom data.

And further, a feed can "recommend" what stylesheet should be used to render it. NewsGator won't automatically download stylesheets (for a number of reasons, mostly security-related), but if the named transform exists, it will use it.

Custom NewsGator Extensions - NewsGator 2.0 provides a new extension API, which can be used to do any arbitrary processing on RSS extension elements. You can do literally anything you want to here - examples:

  • Create a meeting request in Outlook based on custom data in the feed
  • Create a contact in Outlook based on custom data
  • Retrieve content from a web site or internal business system and include it in the rendering
The possibilities are endless.  The extension API is not yet up on the web site (it will be soon), but it available on request to anyone who would like to use it.

Read: RSS extensions

Topic: Microsoft up for Linux award Previous Topic   Next Topic Topic: Agile Curious?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use