<?xml version="1.0" encoding="UTF-8" ?>
<!--
	untitled
	Created by Damian Steer on 2006-05-31.
	Copyright (c) 2006 __MyCompanyName__. All rights reserved.
-->

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
				xmlns:sp="http://www.w3.org/2001/sw/DataAccess/rf1/result"
				xmlns="http://purl.org/rss/1.0/">

	<xsl:output encoding="UTF-8" indent="yes" method="xml" />

	<xsl:template match="/">
		<rdf:RDF>
			<channel rdf:about="http://example.com/rss">
				<title>App Profiles</title>
				<link>http://example.com/</link>
				<description>
					An example of RSS generated from the schema repository
				</description>
				
				<items>
					<rdf:Seq>
						<xsl:apply-templates mode="list"/>
					</rdf:Seq>
				</items>
			</channel>
			
			<xsl:apply-templates/>
			
		</rdf:RDF>
	</xsl:template>
	
	<xsl:template match="sp:result" mode="list">
		<rdf:li rdf:resource="{sp:r/@uri}"/>
	</xsl:template>
	
	<xsl:template match="sp:result">
		<item rdf:about="{sp:r/@uri}">
			<title><xsl:value-of select="sp:name"/></title>
			<link><xsl:value-of select="sp:r/@uri"/></link>
			<description><xsl:value-of select="sp:description"/></description>
		</item>
	</xsl:template>
</xsl:stylesheet>

