<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:f2f="http://friend2friend.net/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:podcast="http://sw.deri.org/2005/07/podcast#" xmlns:xlink="http://www.w3.org/1999/xlink">
	<xsl:include href="format.xslt"/>
	<xsl:template match="/*/rdf:Description">
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<title>
					<xsl:value-of select="dc:title"/>
				</title>
			</head>
			<body>
				<h2 align="center">
					<xsl:value-of select="dc:title"/>
				</h2>
				<table cellpadding="4" border="1" cellspacing="0">
					<tbody>
						<tr bgcolor="blue">
							<th>Title</th>
							<th>Version</th>
							<th>Size</th>
							<th>Updated</th>
							<th>Author</th>
							<th>Description</th>
						</tr>
						<xsl:for-each select=".//rdf:li/rdf:Description">
							<xsl:sort select="@dcterms:modified" order="descending"/>
							<tr>
							<xsl:if test="position() mod 2"><xsl:attribute name="bgcolor">#FFFFCC</xsl:attribute></xsl:if>
								<td align="center">
									<a href="{@xlink:href}">
										<xsl:value-of select="@dc:title"/>
									</a>
								</td>
								<td>
									<xsl:value-of select="@dc:hasVersion"/>
								</td>
								<td align="right">
									<xsl:call-template name="f2f:format-size">
										<xsl:with-param name="size" select="@podcast:filesize"/>
									</xsl:call-template>
								</td>
								<td>
									<xsl:value-of select="@dcterms:modified"/>
								</td>
								<td>
									<xsl:for-each select="dc:creator">
										<xsl:value-of select="."/>
										<xsl:if test="last()>position()"><br/></xsl:if>
									</xsl:for-each>
								</td>
								<td>
									<xsl:value-of select="@dc:description"/>
								</td>
							</tr>
						</xsl:for-each>
					</tbody>
				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
