<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:media="http://search.yahoo.com/mrss/"
  exclude-result-prefixes="media xhtml">
<xsl:output omit-xml-declaration="yes" method="xml"/>

<xsl:template match="channel">
			<ol id="flickrlist">
				<xsl:apply-templates select="item">
				</xsl:apply-templates>
			</ol>
</xsl:template>

<xsl:template match="item">
	<li>
		<a>
		<xsl:attribute name="href">
			<xsl:value-of select="link" />
		</xsl:attribute>
			<img>
				<xsl:attribute name="src">
					<xsl:value-of select="media:thumbnail/@url" />
				</xsl:attribute>
				<xsl:attribute name="width">
					<xsl:value-of select="media:thumbnail/@width" />
				</xsl:attribute>
				<xsl:attribute name="height">
					<xsl:value-of select="media:thumbnail/@height" />
				</xsl:attribute>
				<xsl:attribute name="title">
					<xsl:value-of select="title" /> (tags: <xsl:value-of select="media:category" />)
				</xsl:attribute>
				<xsl:attribute name="alt">
					<xsl:value-of select="title" /> (tags: <xsl:value-of select="media:category" />)
				</xsl:attribute>
			</img>
		</a>
	</li>
</xsl:template>

<xsl:template match="text()"/>

</xsl:stylesheet>