If you want to detect whether the name attribute starts with "T" or "M", write:
Code:
<xsl:choose>
<xsl:when test="starts-with(@name,'T')">
...do something
</xsl:when>
<xsl:when test="starts-with(@name,'M')">
...do something
</xsl:when>
</xsl:choose>
In your example you wrote test=starts-with(@name,'T:H')... and also the example is not a well-formed XML(quots are missing for attribute value).
Regards,
Armen