<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:template match="/">
		<html>
			<head>
				<title>Books That Made a Difference to Me</title>
				<style type="text/css">
		@import url(bobsbooks.css);
		h1 { color="darkblue"; font-family="Arial, Helvetica, sans-serif" }
	</style>
			</head>
			<body bgcolor="white" link="FEE903" vlink="ffffff" alink="#FFCC00">
				<xsl:apply-templates/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="library">
		<center>
			<h1>Books That Made a Difference to Me</h1>
		</center>
		<xsl:for-each select="/library/booklist/book">
			<span class="book">
				<span class="coverimage">
					<xsl:apply-templates select="coverimage/html:img"/>
				</span>
				<span class="title">
					<xsl:apply-templates select="title/html:a"/>
				</span>
				<span class="author">by <xsl:value-of select="author"/>
				</span>
				<span class="blurb">
					<xsl:value-of select="blurb"/>
				</span>
				<span class="pages">
					<xsl:value-of select="pages"/>
				</span>
				<span class="price">
					<xsl:value-of select="price"/>
				</span>
				<span class="pubyear">
					<xsl:value-of select="pubyear"/>,</span>
				<span class="publisher">
					<xsl:value-of select="publisher"/>, </span>
				<span class="isbn">ISBN: <xsl:value-of select="isbn"/>
				</span>
			</span>
			<br/>
		</xsl:for-each>
	</xsl:template>
	<!-- "coverimage" template -->
	<xsl:template match="coverimage/html:img">
		<img>
			<xsl:attribute name="src"><xsl:value-of select="./@src"/></xsl:attribute>
			<xsl:attribute name="width"><xsl:value-of select="./@x"/></xsl:attribute>
			<xsl:attribute name="height"><xsl:value-of select="./@y"/></xsl:attribute>
			<xsl:attribute name="border"><xsl:value-of select="./@border"/></xsl:attribute>
			<xsl:attribute name="vspace"><xsl:value-of select="./@vspace"/></xsl:attribute>
			<xsl:attribute name="hspace"><xsl:value-of select="./@hspace"/></xsl:attribute>
			<xsl:attribute name="alt"><xsl:value-of select="./@alt"/></xsl:attribute>
		</img>
	</xsl:template>
	<!-- "title" template -->
	<xsl:template match="title/html:a">
		<a>
			<xsl:attribute name="href"><xsl:value-of select="./@href"/></xsl:attribute>
			<xsl:value-of select="."/>
		</a>
	</xsl:template>
</xsl:stylesheet>

