[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

problem copying xhtml elements from xml input file

Subject: problem copying xhtml elements from xml input file
From: "cking" <cking@xxxxxxxxxx>
Date: Mon, 12 Jul 2004 19:36:37 +0200
xhtml input file
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.