Sharing SharePoint

Always a rookie in the SharePoint World

  • Follow me on Twitter

    Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • Blog Stats

    • 60,367 hits
  • Advertisements

Customizing RSS Viewer to display forecast

Posted by Jessica Wang on March 25, 2008

Step 1:  Register for Free at to get your Partner ID and License Key

Step 2: Enter*&dayf=6&par=PartnerID&prod=xoap&unit=m&key=LicenseKey into RSS Feed URL

Step 3: Edit the XSL

<?xml version=”1.0″ encoding=”ISO-8859-1″ ?><xsl:stylesheet version=”1.0″ xmlns:xsl=””><xsl:output method=”html” indent=”yes” encoding=”iso-8859-1″ /><xsl:template match=”/weather”>

<xsl:variable name=”med-img-dir”>WeatherIcons/60×59</xsl:variable>

<!–Purpose: Weather Webpart, information from–>

         <xsl:variable name=”day” select=”dayf/day[@d]”></xsl:variable>

        <xsl:for-each select=”$day”>

 <!– Current Weather Conditions –>

<table width=”100%”>



                                <td style=”width: 70px;font-size: 11px” rowspan=”3″>

                                <xsl:variable name=”img-ext”>png</xsl:variable>

                                <xsl:variable name=”iconnumber” select=”part[@p=’d’]/icon” />

                                <img src=”{$med-img-dir}/{$iconnumber}.{$img-ext}” mce_src=”{$med-img-dir}/{$iconnumber}.{$img-ext}” alt=”{$iconnumber}.{$img-ext}” width=”40″ height=”42″ />


                                <!–Day and Date–>

                                <td style=”font-size: 11px; font-weight: bold; padding:0px 0px 0px 0px” colspan=”2″>

                                                                <xsl:value-of select=”./@dt” />,

                                                                <xsl:value-of select=”./@t” />




                                <td style=”font-size: 11px; padding:0px 0px 0px 0px” colspan=”2″>                                        

                                                                <xsl:value-of select=”part[@p=’d’]/t”/>





                                                                <td style=”font-size: 11px; padding:0px 0px 0px 0px”>Min:

                                                                <xsl:value-of select=”low”></xsl:value-of>C </td>

                                                                <td style=”font-size: 11px; padding:0px 0px 0px 0px” >Max:

                                                                <xsl:value-of select=”hi”></xsl:value-of>C </td>







Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: