Stump the Panel » End Users and Information Workers

Calendar RSS XSLT

(4 posts)

Tags:

  1. I know just how much everybody loves XSLT so I thought I'd ask.... As I can't jack on the net...

    I have a RSS feed from a Calendar on my site... Now the OOB RSS viewer allows you to modify the XSLT..
    Does anyone have / know / point me to some XSLT code that I can use to diplay the calendar RSS feed a little more friendly.. At the moment, OOB it shows just the Title..

    I would love for it to show the title and the date it is on..

    Posted 2 weeks ago #
  2. ok so I've got this far...

    Haven't been able to get it to display the "Begin"(EventDate) date and for some reason it showing older entries...

    I'm using the lastest entries RSS feed straight from a SharePoint Calendar..

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="rss/channel"><style media="all" lang="en" type="text/css">
    .ChannelTitle
    {
    font-family: Verdana;
    font-size: 11pt;
    font-weight: bold;
    width: 500px;
    text-align: center;
    }
    .EventEntry
    {
    border-bottom: 1px dotted lightgrey;
    }
    .EventTitle
    {
    color: #ffffff;
    font-family: Verdana;
    font-size: 9pt;
    font-weight: bold;
    padding-left: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    }
    .EventHeader
    {
    font-family: Verdana;
    font-size: 7pt;
    padding-left: 5px;
    padding-bottom: 2px;
    }
    .EventHeader A:visited
    {
    text-decoration: none;
    }
    .EventHeader A:link
    {
    text-decoration: none;
    }
    .EventHeader A:hover
    {
    text-decoration: underline;
    } 
    
    </style><xsl:apply-templates select="item"/></xsl:template><xsl:template match="title">
    <div class="ChannelTitle">
    <xsl:value-of select="text()"/>
    </div>
    
    </xsl:template>
    <xsl:template match="item"><div class="EventEntry"><div class="EventTitle"><xsl:value-of select="title"/></div><div class="EventHeader"><xsl:value-of select="ows_EventDate"/><a href="{link}">View Event</a></div></div></xsl:template></xsl:stylesheet>
    
    http://www.aussieslivingsimply.com.au/images/rssfeed.png
    Posted 2 weeks ago #
  3. This might possibly help, even though it applies to the CQWP, you might glean some information from it:

    http://www.heathersolomon.com/blog/articles/customitemstyle.aspx

    Posted 2 weeks ago #
  4. yeah I saw that post a couple of weeks ago... I may have to give it crack to... What I really wanted to do though is do it through the interface though and not through SPD (and the less I have to mod OOB the better)

    For now I'm going to continue with the custom RSS feed, but may have to come back to this way though,,, cheers Laura.

    Posted 2 weeks ago #

RSS feed for this topic

Reply

You must log in to post.