<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes" indent="yes"/>

<xsl:template match="*">
	<xsl:for-each select="photosets/photoset">
	<div class="set">
		<div class="img-shadow">
		<a>
			<xsl:attribute name="href">http://www.flickr.com/photos/tjmweb/sets/<xsl:value-of select="@id" /></xsl:attribute>
			<img>
			<xsl:attribute name="src">http://static.flickr.com/<xsl:value-of select="@server"/>/<xsl:value-of select="@primary"/>_<xsl:value-of select="@secret"/>_s.jpg</xsl:attribute>
			<xsl:attribute name="alt"><xsl:value-of select="*[local-name()='title']"/></xsl:attribute>
			</img>
		</a>
		</div>
		<p class="title">
		<a>
			<xsl:attribute name="href">http://www.flickr.com/photos/tjmweb/sets/<xsl:value-of select="@id" /></xsl:attribute>
			<xsl:value-of select="*[local-name()='title']"/> (<xsl:value-of select="@photos" />)
		</a>
		</p>
		
	</div>
	</xsl:for-each>
</xsl:template>

<xsl:template match="/">
	<xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>