[Home] [By Thread] [By Date] [Recent Entries]
Andrew Welch wrote:
So if I get rid of <xsl:copy> from within the <xsl:template match="HTML"> it should not copy <HTML> twice ? I tried this approach hoping that by removing <xsl:copy> it should not copy the present node. This solved the duplicate <HTML> at the start but also removed the end tag </HTML> at the end of the file. Im obviously going wrong somewhere but dont know how to resolve it. I apply the same logic in the next block <xsl:template match="BODY">
<xsl:copy>
<xsl:copy-of select="."/>
<xsl:apply-templates select="TABLE | TABLE/TR | TABLE/TR/TD"/>
</xsl:copy>
</xsl:template>Then why doesnt the result contain duplicate <BODY> tags ? I think you are after the 'identity stylesheet': Can I use this approach for copying an HTML file? Isnt this applicable only to XML files? Thanks Rahil
|

Cart



