HTML(input)
<html>
<table class="test">
<tbody>
<tr>
<td>
</td><td><h3>Text1</h3>
</td><td></td></tr><tr valign="top">
<td class="c">1.</td>
<td class="d"><a href="/map_traffic.xml?mapID=1600&scale=10&mapX=3396238&mapY=6482459">Text2</a></td>
<td>Text3</td>
</tr>
</tbody></table></html>
XSLT
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" exclude-result-prefixes="xs fn">
<xsl:output method="xml" encoding="UTF-8" indent="yes" use-character-maps="NBSP"/>
<xsl:character-map name="NBSP">
<xsl:output-character character="&" string=";"/>
</xsl:character-map>
<xsl:template match="table">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="tr">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="td">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Result(XML)
<table>Test
<tr>
<td>
</td><td>Text1
</td><td /></tr><tr>top
<td>c1.</td>
<td>dText2</td>
<td>Text3</td>
</tr>
</table>
question at last:)
How can i modify my XSLT, to make result without class identifiers. so <td>dText2</td> must be <td>Text2</td>.