<?xml version="1.0"?>
<xsl:stylesheet 
	xmlns:xsl="http://www.w3.org/TR/WD-xsl"
	version="1.0">

<xsl:template match="/"><html><head><title>XSL Reference Books</title></head>
<body background="image/bookbkgrd.gif" text="black" style="font-family: arial, serif;">

<h1 align="center">XML Books </h1>
<table width="100%" bordercolor="tan" border="1">
<tr>
<th><font color="blue">Title</font></th>
<th><font color="blue">Author</font></th>
<th><font color="blue">ISBN</font></th>
<th><font color="blue">Pages </font></th>
</tr>

	<xsl:apply-templates select="book_builder/book"/>

</table>
</body>
</html>
</xsl:template>


<xsl:template match="book">

<tr>
<td align="center"><xsl:apply-templates select="title"/></td>

<td align="center"><xsl:apply-templates select="writer"/></td>

<td align="center"><xsl:apply-templates select="isbn"/></td>

<td align="center"><xsl:apply-templates select="pages"/></td>

</tr>

</xsl:template>

<xsl:template match="title">
	<nobr><b><xsl:value-of select="."/> </b></nobr>
</xsl:template>

<xsl:template match="writer">
	<nobr><b><xsl:value-of select="."/> </b></nobr>
</xsl:template>

<xsl:template match="isbn">
	<nobr><b><xsl:value-of select="."/></b></nobr>
</xsl:template>

<xsl:template match="pages">
	<nobr><b><xsl:value-of select="."/> </b></nobr>
</xsl:template>

</xsl:stylesheet>

