Want to mess around with the college calendar and feeds?
Here are some sample files to get you started.
The Feed
http://apps.cehd.umn.edu/events/admin/RSSFeed.aspx?&x=20&r=3&q=6&t=170
The XSLT
<xsl:stylesheet version="1.0"> <xsl:output method="html" omit-xml-declaration="yes"/> <xsl:template match="/rss/channel"> <!-- Start template for RSS Feed --> <xsl:for-each select="item"> <!-- Do the following for each item --> <p><xsl:value-of select="dateFull" disable-output-escaping="yes"/></p> <p><xsl:value-of select="title" disable-output-escaping="yes"/></p> </xsl:for-each> <!-- Stop when you run out of items --> </xsl:template> <!-- End template --> </xsl:stylesheet> <!-- End stylesheet -->
The CSS
/* College of Education and Human Development
CSS for XSLT Examples
Authors: Jeff Abuzzahab
Created: 2009-10-06
Updated: 2009-10-07 */
body {
background-color: #fff;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:.8em;
}
h1 {font:bold 175%/100% Calibri, Arial, sans-serif;color:#3d873b;margin-top:20px;}
h2 {font:bold 145%/100% Calibri, Arial, sans-serif;color:#434087;margin-top:20px;}
h3 {font:bold 110%/100% Calibri, Arial, sans-serif;color:#434087;margin-top:20px;}
h4 {font:bold 105%/100% Calibri, Arial, sans-serif;color:#434087;margin-top:20px;}
h5 {font:bold 100%/100% Calibri, Arial, sans-serif;color:#434087;}
h6 {font:bold 100%/100% Calibri, Arial, sans-serif;color:#434087;}
a {color:#434087;}
div#calendar {
padding:0 0 20px 0;
margin:0 0 10px 0;
width: 400px;
border-bottom:3px gray dotted;
}
div#calendar ul {
margin:10px 25px;
padding:0;
}
div#calendar ul li {
margin:0 0 15px 0;
padding:0;
list-style-type:none;
}
div#calendar h3 {
margin:10px 0 0 6px;
}
div#calendar p {
padding:0;
margin:2px 10px;
line-height:1.2em;
}
/*div#calendar strong {
color:#666;
}*/