You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Kurian, Binil" <BK...@crt.xerox.com> on 2001/11/14 19:17:32 UTC
Newbie question : DOM to DOM conversion
Hi,
I am trying to convert an Existing DOM element using Xalan to another DOM
Element.
If i create a DOM source with the "Document" object (parent of the original
DOM element), Xalan seems to transform the element just fine.
But if is create a DOM source using the Element itself, Xalan doesn't
convert the original DOM element in the required way.
It returns a document with a DOM element which it doesn't contain all the
required information.
Is a DOMSource object always to be constructed using a Document object?
Thanks and Regards,
binil
RE: Newbie question : DOM to DOM conversion
Posted by Gary L Peskin <ga...@firstech.com>.
Can you post your code and the XSLT document that you're using for the
transformation? This should work, I think.
Thanks,
Gary
> -----Original Message-----
> From: Kurian, Binil [mailto:BKurian@crt.xerox.com]
> Sent: Wednesday, November 14, 2001 10:18 AM
> To: xalan-j-users@xml.apache.org
> Subject: Newbie question : DOM to DOM conversion
>
>
> Hi,
>
>
> I am trying to convert an Existing DOM element using Xalan to
> another DOM Element.
>
> If i create a DOM source with the "Document" object (parent
> of the original DOM element), Xalan seems to transform the
> element just fine. But if is create a DOM source using the
> Element itself, Xalan doesn't convert the original DOM
> element in the required way.
> It returns a document with a DOM element which it doesn't
> contain all the required information.
>
> Is a DOMSource object always to be constructed using a
> Document object?
>
>
> Thanks and Regards,
> binil
>