<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd"> 
<!-- 

News Archive

Contributors: Unknown, Caroline Spooner
Last Updated 7/8/2013
-->
<xsl:stylesheet version="3.0" 
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:xs="http://www.w3.org/2001/XMLSchema" 
				xmlns:ou="http://omniupdate.com/XSL/Variables"
				xmlns:fn="http://omniupdate.com/XSL/Functions" 
				xmlns:ouc="http://omniupdate.com/XSL/Variables"
				exclude-result-prefixes="ou xsl xs fn ouc">
	
<xsl:import href="interior.xsl"/>

	
<!-- BEGIN SPECIAL MATCH #1 MAINCONTENT -->
<!-- if any special options are activated for copying misc content, they are applied in this match -->
<xsl:template match="maincontent" mode="copy">	
	
	
	
	<xsl:apply-templates mode="copy"/> <!-- copy everything normally -->		
	
	<!-- add special content -->
	
	<xsl:call-template name="archive"/>

	
</xsl:template>
<!-- END SPECIAL MATCH #1 MAINCONTENT -->

<xsl:template name="archive">
<xsl:param name="rss-feed" select="ou:assignVariable('rss-feed',$ou:feed,'http://omniupdate.com/syndication/aggregate.xml')"/>			
<xsl:variable name="rss" select="if(doc-available($rss)) then(document($rss)) else('')"/>


<xsl:for-each select="$rss/item">
	<xsl:sort select="pubdate"/>
</xsl:for-each>	
	
					

</xsl:template>
	

	

</xsl:stylesheet>
