Re: Exception during importStylesheet()

Marco Baumgartl <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
Martin Honnen wrote:

>> var div = document.getElementById("output");
>> div.append(fragment);
> There is no method named append in the DOM, you need
>   div.appendChild(fragment);

I know - it was just a typing error. I already had 
div.appendChild(fragment) in my code.

I got it working now. I think the problem was that I started to 
transform without knowing if the xml data or the style sheet is loaded 
completely. For this reason I added two event listeners to my code and 
started the transformation in the onLoad function of my xml data.


Thanks for your patience and advices! :-D



regards
Marco
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.