<!-- This style sheet gathers the linescores from multiple boxscore XML entities. -->
<?xmls version="1.0" ?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>
This season's final scores
</TITLE>
</HEAD>
<BODY>
<TT>
<P>
<xsl:apply-templates/>
</P>
</TT>
</BODY>
</HTML>
</xsl:template>
<!-- Print the date in a header. -->
<xsl:template match="dateinfo">
<h4>
<xsl:apply-templates/>
</h4>
</xsl:template>
<!-- Print the linescore, as in complete.xsl -->
<xsl:template match="linescore">
<table cellspacing="0" cellpadding="0"><tt>
<tr height="25" valign="bottom"><td width="175">
<xsl:apply-templates select="teamline[@home='visiting']/teamname"/></td>
<xsl:for-each select="teamline[@home='visiting']/inningscore">
<td width="20" align="right"><xsl:value-of select="."/></td>
</xsl:for-each>
<td width="50" align="center">--</td>
<td width="15" align="right"><xsl:apply-templates select="teamline[@home='visiting']/teamfinalscore"/></td>
</tr>
<tr height="25" valign="top"><td width="175">
<xsl:apply-templates select="teamline[@home='home']/teamname"/></td>
<xsl:for-each select="teamline[@home='home']/inningscore">
<td width="20" align="right"><xsl:value-of select="."/></td>
</xsl:for-each>
<td width="50" align="center">--</td>
<td width="15" align="right"><xsl:apply-templates select="teamline[@home='home']/teamfinalscore"/></td>
</tr>
</tt></table>
<xsl:if test="../linescorenote">
<xsl:value-of select="."/>
</xsl:if>
</xsl:template>
<!-- Print a link to recap story on the game. -->
<xsl:template match="finalmatter/link">
Full recap at:
<a>
<xsl:attribute name="href">
<xsl:apply-templates/>
</xsl:attribute>
<p>
<xsl:apply-templates/>
</p>
</a>
</xsl:template>
<!-- Don't print anything else. -->
<xsl:template match="(scoreheader|batting|pitching)"/>
<xsl:template match="(finalmatter/umpires|finalmatter/time|finalmatter/attendance|finalmatter/conditions)"/>
</xsl:stylesheet>