HI,
I am very new to XSLT..
I am trying to have identity-copy of my html, and change a few things, but the result gives me extra <html><body></body></html>
after my </html>
here's my xsl:
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match='node()|@*' >
<xsl:copy>
<xsl:apply-templates select='node()|@*' />
</xsl:copy>
</xsl:template>
<xsl:template match='h2'>
<xsl:copy>
<font color='red'><xsl:value-of select='.'/></font>
</xsl:copy>
</xsl:template>
<xsl:template match="div[@class]">
<xsl:copy>
<xsl:copy-of select='@*'/>
<xsl:apply-templates select="div/@id">
<xsl:sort/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="div/@id">
<xsl:copy-of select='..'/>
</xsl:template>
</xsl:stylesheet>
how can I not have the extra nodes?
appreciate any helps..
TQ in advance! :-)