| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|---|
| 3 |
<xsl:output |
|---|
| 4 |
method="xml" |
|---|
| 5 |
omit-xml-declaration="no" |
|---|
| 6 |
indent="yes" |
|---|
| 7 |
doctype-public="'-//Netscape Communications//DTD RSS 0.91//EN' 'http://my.netscape.com/public/formats/rss-0.91.dtd'" |
|---|
| 8 |
media-type="text/xml" |
|---|
| 9 |
encoding="ISO-8859-1" |
|---|
| 10 |
/> |
|---|
| 11 |
<!-- ========================================================= |
|---|
| 12 |
|
|---|
| 13 |
BEDEWORK RSS FEED (deprecated) |
|---|
| 14 |
|
|---|
| 15 |
Deprecated: use rss-list.xsl instead. |
|---|
| 16 |
|
|---|
| 17 |
This is an older file used to pull a list of events from the |
|---|
| 18 |
day, week, or month views and was originally used to |
|---|
| 19 |
produce "Today's Events". rss-list.xsl takes timezones into |
|---|
| 20 |
account. This file does not. |
|---|
| 21 |
. |
|---|
| 22 |
Call the feed with the listEvents action like so: |
|---|
| 23 |
http://localhost:8080/main/setViewPeriod.do?viewType=todayView&setappvar=summaryMode(details)&skinName=rss |
|---|
| 24 |
|
|---|
| 25 |
=============================================================== --> |
|---|
| 26 |
<!-- ********************************************************************** |
|---|
| 27 |
Copyright 2008 Rensselaer Polytechnic Institute. All worldwide rights reserved. |
|---|
| 28 |
|
|---|
| 29 |
Redistribution and use of this distribution in source and binary forms, |
|---|
| 30 |
with or without modification, are permitted provided that: |
|---|
| 31 |
The above copyright notice and this permission notice appear in all |
|---|
| 32 |
copies and supporting documentation; |
|---|
| 33 |
|
|---|
| 34 |
The name, identifiers, and trademarks of Rensselaer Polytechnic |
|---|
| 35 |
Institute are not used in advertising or publicity without the |
|---|
| 36 |
express prior written permission of Rensselaer Polytechnic Institute; |
|---|
| 37 |
|
|---|
| 38 |
DISCLAIMER: The software is distributed" AS IS" without any express or |
|---|
| 39 |
implied warranty, including but not limited to, any implied warranties |
|---|
| 40 |
of merchantability or fitness for a particular purpose or any warrant)' |
|---|
| 41 |
of non-infringement of any current or pending patent rights. The authors |
|---|
| 42 |
of the software make no representations about the suitability of this |
|---|
| 43 |
software for any particular purpose. The entire risk as to the quality |
|---|
| 44 |
and performance of the software is with the user. Should the software |
|---|
| 45 |
prove defective, the user assumes the cost of all necessary servicing, |
|---|
| 46 |
repair or correction. In particular, neither Rensselaer Polytechnic |
|---|
| 47 |
Institute, nor the authors of the software are liable for any indirect, |
|---|
| 48 |
special, consequential, or incidental damages related to the software, |
|---|
| 49 |
to the maximum extent the law permits. --> |
|---|
| 50 |
|
|---|
| 51 |
<xsl:template match="/"> |
|---|
| 52 |
<rss version="2.0"> |
|---|
| 53 |
<channel> |
|---|
| 54 |
<title>Bedework Events Calendar</title> |
|---|
| 55 |
<link><xsl:value-of select="/bedework/urlprefix"/></link> |
|---|
| 56 |
<description>My Site's Events</description> |
|---|
| 57 |
<language>en-US</language> |
|---|
| 58 |
<copyright>Copyright <xsl:value-of select="substring(/bedework/currentdate,1,4)"/>, Your Institution Here</copyright> |
|---|
| 59 |
<managingEditor>editor@mysite.edu, Editor Name</managingEditor> |
|---|
| 60 |
<xsl:apply-templates select="/bedework//event"/> |
|---|
| 61 |
</channel> |
|---|
| 62 |
</rss> |
|---|
| 63 |
</xsl:template> |
|---|
| 64 |
<xsl:template match="event"> |
|---|
| 65 |
<item> |
|---|
| 66 |
<title><xsl:value-of select="summary"/> - <xsl:value-of select="substring(start/monthname,1,3)"/><xsl:text> </xsl:text><xsl:value-of select="start/day"/></title> |
|---|
| 67 |
<link><xsl:value-of select="/bedework/urlprefix"/>/eventView.do?subid=<xsl:value-of select="subscription/id"/>&calPath=<xsl:value-of select="calendar/encodedPath"/>&guid=<xsl:value-of select="guid"/>&recurrenceId=<xsl:value-of select="recurrenceId"/></link> |
|---|
| 68 |
<pubDate><xsl:value-of select="substring(start/dayname,1,3)"/>, |
|---|
| 69 |
<xsl:value-of select="start/twodigitday"/><xsl:text> </xsl:text> |
|---|
| 70 |
<xsl:value-of select="substring(start/monthname,1,3)"/><xsl:text> </xsl:text> |
|---|
| 71 |
<xsl:value-of select="start/fourdigityear"/><xsl:text> </xsl:text> |
|---|
| 72 |
<xsl:value-of select="start/twodigithour24"/>:<xsl:value-of select="start/twodigitminute"/>:00 EST</pubDate> |
|---|
| 73 |
<description> |
|---|
| 74 |
<xsl:value-of select="substring(start/dayname,1,3)"/>, |
|---|
| 75 |
<xsl:value-of select="start/longdate"/> |
|---|
| 76 |
<xsl:text> </xsl:text> |
|---|
| 77 |
<xsl:value-of select="start/time"/> |
|---|
| 78 |
<xsl:if test="end/time != ''"> - </xsl:if> |
|---|
| 79 |
<xsl:if test="end/dayname != start/dayname"><xsl:value-of select="substring(end/dayname,1,3)"/>, </xsl:if> |
|---|
| 80 |
<xsl:if test="end/longdate != start/longdate"><xsl:value-of select="end/longdate"/>,</xsl:if> |
|---|
| 81 |
<xsl:if test="end/time != ''"><xsl:value-of select="end/time"/></xsl:if> |
|---|
| 82 |
<xsl:text> </xsl:text> |
|---|
| 83 |
<xsl:value-of select="location/address"/>. |
|---|
| 84 |
<xsl:if test="cost!=''"><xsl:value-of select="cost"/>. </xsl:if> |
|---|
| 85 |
<xsl:value-of select="description"/> |
|---|
| 86 |
</description> |
|---|
| 87 |
</item> |
|---|
| 88 |
</xsl:template> |
|---|
| 89 |
</xsl:stylesheet> |
|---|