danyeel
Programmer
- Dec 9, 2008
- 6
Dear All
I have written a simple bit of XSL to take in a SharePoint RSS feed and display it on my website. I just need to add a condition to it because I only want it to display items where the "title" begins with the words "Theme of the week ".
I'm convinced it should be easy but so far I've found it really difficult to modify - everything I've tried has meant it doesn't work.
If you can offer any advise I would be very grateful.
Thank you for your time
Lucie
I have written a simple bit of XSL to take in a SharePoint RSS feed and display it on my website. I just need to add a condition to it because I only want it to display items where the "title" begins with the words "Theme of the week ".
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:output method="html" />
<xsl:template match="/">
<xsl:for-each select="rss/channel/item">
<h3>
<xsl:value-of select="title" />
</h3>
<p> Worship resources</p>
<p class="footer">
Theme for
<xsl:value-of select="description" />
</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I'm convinced it should be easy but so far I've found it really difficult to modify - everything I've tried has meant it doesn't work.
If you can offer any advise I would be very grateful.
Thank you for your time
Lucie