Subject: [xsl] problem copying xhtml elements from xml input file From: "cking" <cking@xxxxxxxxxx> Date: Mon, 12 Jul 2004 19:36:37 +0200 |
I have xml input files containing xhtml elements. Something like <content-block> <p>a paragraph with <b>bold</b> text</p> <img src="pic.gif" alt=""/> </content-block> I just want to copy these elements to the output tree. I thought I could do that with a simple xsl:copy-of, like this <xsl:template match="content-block"> <xsl:copy-of select="node()"/> </xsl:template> This works fine... in IE6, but not in Mozilla. I made a testcase and reported this as a possible bug, but they reply that it doesn't work because the copied elements are in the wrong namespace. Maybe they're right, and I tried to fix it in a number of ways but I can't get it to work. The complete testcase can be found here: http://users.telenet.be/cking/webstuff/test/copy-of/info.html And the bugreport: http://bugzilla.mozilla.org/show_bug.cgi?id=250921 Maybe someone can point out what I'm doing wrong? Thanks Anton Triest
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Speeding up processing (w, M. David Peterson | Thread | [xsl] How to select a document elem, Belkin, Alla |
[xsl] Speeding up processing (with , TDarksword | Date | RE: [xsl] Speeding up processing (w, Michael Kay |
Month |