reduce number of tables: merge Tap and Hold counts tables

This commit is contained in:
Chris Danford
2004-08-28 21:44:06 +00:00
parent f10efc414a
commit 685a43af5e
@@ -502,22 +502,23 @@
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="text"> <xsl:with-param name="text">
<xsl:for-each select="./*[count(*) &gt; 0]"> <h2>Judgments</h2>
<h2> <xsl:element name="table" use-attribute-sets="EntityTableAttr">
<xsl:if test="name()='TapNoteScores'">Tap Scores</xsl:if> <xsl:call-template name="DataTableGenerator">
<xsl:if test="name()='HoldNoteScores'">Hold Scores</xsl:if> <xsl:with-param name="cols" select="2" />
<xsl:if test="name()='RadarValues'">Stats</xsl:if> <xsl:with-param name="nodeset" select="TapNoteScores/* | HoldNoteScores/*" />
</h2> </xsl:call-template>
<xsl:element name="table" use-attribute-sets="EntityTableAttr"> </xsl:element>
<xsl:call-template name="DataTableGenerator">
<xsl:with-param name="cols" select="2" /> <hr />
<xsl:with-param name="nodeset" select="*[text()]" />
</xsl:call-template> <h2>Stats</h2>
</xsl:element> <xsl:element name="table" use-attribute-sets="EntityTableAttr">
<xsl:if test="position()!=last()"> <xsl:call-template name="DataTableGenerator">
<hr /> <xsl:with-param name="cols" select="2" />
</xsl:if> <xsl:with-param name="nodeset" select="RadarValues/*" />
</xsl:for-each> </xsl:call-template>
</xsl:element>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>