You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jo...@lotus.com on 2000/10/28 01:13:27 UTC

Re: newbie: trouble with insertBefore

>The exception occurs in the insertBefore function.

You can't mix nodes from different Documents. See
http://www.w3.org/DOM/faq.html#moveNode for background and workarounds --
basically, you want importNode rather than cloneNode, if it's available, or
a hand-coded equivalent if it isn't.