help
This is a first question from xml biginner,TAchiwa Tokyo,Japan..
I  want to get a html transform from [eng
ineers.xml] by[engineers.xsl].
There are 2 engineers category java.So I am trying to have like <td rowspan="2">
expresion.
To do this,I get variable $java by using <xsl:variable name="java"
        select="count(//@category[.='java'])"/>.
But I can not understand how to apply to actual coding.
I appriciate verymuch some one will help me.
 
[egineers.xml]
 
<engineers>
<engineer category="java">
<name>AAA</name>
<age>25</age>am
</engineer>
<engineer category="xml">
<name>Jiro</name>
<age>24</age>
</engineer>
<engineer category="java">
<name>Saburo</name>
<age>23</age>
</engineer>
<engineer category="c">
<name>Siro</name>
<age>22</age>
</engineer>
</engineers>

「engineers.xsl」
-------------------------
<xsl:template match="/">
<html><body><table border="1">
<tr><th>Category</th><th>Name</th><th>Age</th>
</tr>
<xsl:for-each select="//engineer">
<xsl:sort select="@category"/>
<xsl:variable name="java" select="count(//@category[.='java'])"/>
<xsl:variable name="c" select="count(//@category[.='c'])"/>
<xsl:variable name="xml" select="count(//@category[.='xml'])"/>
<tr><td ><xsl:value-of select="@category."/></td>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="age"/></td></tr>
</xsl:for-each>
</table></body></html>
</xsl:template>