Re: Accessing the original XML DOM after browser-applied XSL transformation?

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>

Christian Biesinger wrote:

> Martin Honnen wrote:
>
>> But as far as I understand these are readonly so what the original 
>> poster expects, e.g. changing the source XML with DOM manipulation and 
>> having the result document automatically updated, is not possible.
> 
> 
> "readonly" here only means that you can't do "document.XMLDocument = 
> foo;", doesn't it? It doesn't necessarily mean that you can't change the 
> DOM.

When I wrote that I had some recollection that I had long ago attempted 
to change the DOM and it would not work. But I have tried now and you 
can change the DOM of document.XMLDocument. But an automatic update of 
the result document rendered in the browser does not happen, one needs 
to run the transformation using the MSXML methods (e.g. tranformNode) 
and then use IE DOM stuff (e.g. innerHTML, insertAdjacentHTML) to have 
the string result of transformNode parsed and inserted into IE's HTML 
DOM document.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.