xsl-list
[Top] [All Lists]

problem copying xhtml elements from xml input file

2004-07-12 10:36:37
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



<Prev in Thread] Current Thread [Next in Thread>
  • problem copying xhtml elements from xml input file, cking <=