Help: Copying entire element as it is to another document

wxdqz

New Member
I have HTML inside an XML element which I want to copy into an XSL templateto produce a final html.In the example xml document below, I want to copy every thing inside withinthe <document> </document> tag.Example-------<?xml version ='1.0' encoding='UTF-8'?><page>...<document><B><FONT FACE="Arial" SIZE="5"><P><A NAME="_Toc491248321">Document heading</A></P></FONT></B><FONT SIZE="2"><P>The document paragraph goes here</P></FONT></document></page>I have tried the following in an XSL templete:<xsl:apply-templates select="/page/document/*|/page/document/*[@*]|/page/document/*/text()"/><xsl:templatematch="/page/document/*|/page/document/*[@*]|/page/document/*/text()"><xsl:copy><xsl:apply-templates select="/page/document/*|/page/document/*[@*]|/page/document/*/text()"/></xsl:copy></xsl:template>However, it keeps failing with stack overflow error. I am user MSXML perser.Could somebody point me in the right direction.
 
Back
Top