<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY equal "&#61;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html><head><title>Pedigree</title>
<link rel="STYLESHEET" type="text/css" href="../css/scriptkitty.css" /></head>
<body>
<table border="0" bgcolor="white">
<tr class="orangeYellow" align="center"><td colspan="5">
<h1 class="orangeYellow">Pedigree</h1>
</td></tr>
<tr><td>
<xsl:for-each select="dogs/record/image">
<xsl:apply-templates select="@src"/>
<xsl:apply-templates select="@width"/>
<xsl:apply-templates select="@height"/>
</xsl:for-each></td>
<td colspan="5" align="left">This is the pedigree for the first dog listed below.<br />Included are the dog's name and titles won.
</td>
</tr>
<tr><td class="bold">Name</td><td class="bold">Sex</td><td class="bold"> SchH </td><td class="bold"> IPO </td><td class="bold"> FH </td><td class="bold">Bundessieger</td></tr>
<tr>
<td width="300"><xsl:for-each select="dogs/record">
<xsl:apply-templates select="name"/>
</xsl:for-each></td>
<td width="10"><xsl:for-each select="dogs/record">
<xsl:apply-templates select="sex"/>
</xsl:for-each></td>
<td><xsl:for-each select="dogs/record/titles">
<xsl:apply-templates select="schutzhund"/>
</xsl:for-each></td>
<td valign="top"><xsl:for-each select="dogs/record/titles">
<xsl:apply-templates select="IPO"/>
</xsl:for-each></td>
<td valign="top"><xsl:for-each select="dogs/record/titles">
<xsl:apply-templates select="FH"/>
</xsl:for-each></td>
<td valign="top"><xsl:for-each select="dogs/record/titles">
<xsl:apply-templates select="bundessieger"/>
</xsl:for-each></td>
</tr>
</table>
</body>
</html>
</xsl:template>

<xsl:template match="@src">
<src />
<xsl:attribute name="&lt;img src">
<xsl:apply-templates/>
	<xsl:value-of/>
</xsl:attribute>
</xsl:template>

<xsl:template match="name">
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="sex">
	<xsl:value-of select="@type"/><br />
</xsl:template>

<xsl:template match="color">
	<b>Color: </b> 
	<xsl:value-of/>
</xsl:template>

<xsl:template match="dateWhelped">
	<b>Date Whelped: </b>
	<xsl:value-of/>
</xsl:template>

<xsl:template match="breeder">
	<b>Breeder: </b>
	<xsl:value-of/>
</xsl:template>

<xsl:template match="schutzhund">
	<xsl:value-of select="@rating"/><br />
</xsl:template>

<xsl:template match="IPO">
	<xsl:value-of select="@rating"/><br />
</xsl:template>

<xsl:template match="FH">
	<xsl:value-of select="@rating"/><br />
</xsl:template>

<xsl:template match="bundessieger">
	<xsl:value-of select="@status"/><br />
</xsl:template>
</xsl:stylesheet>