[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: why do I get duplicate <HTML> after xsl:copy ?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|