Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: javascipt in xsl not working

From: "Anthony Jones" <Ant@------------.--->
To: NULL
Date: 5/8/2006 1:41:00 PM


<nx.nine@g...> wrote in message
news:1147091218.891551.157180@g......
> i made the change suggested, IE now tells me that the stylesheet does
> not contain a document element and does not render anything.
>
> i have a feeling the problem might be caused by the way that i append
> the transformed data  to the page. the only method i've found of adding
> the result of transformNode to the page is by making a dummy div and
> making the innerHTML the output and appending that.
> i'm not very familiar with how to do things in IE, and every time i've
> tried a firefox-esque method of appending the DOMDocument to the page
> it gives me an error.
>
> i may be barking up the wrong tree, but i think it's worth mentioning
>
> thanks for helping me out =)
>

Try posting your code to the microsoft.public.scripting.jscript group.  This
isn't really an XSL problem.

Have you tried having the node appended to the document before assigning to
it's innerHTML.

In IE you can use the insertAdjacentHTML method of an element which means
you don't need a dummy element. See:-

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/insertadjacenthtml.asp

Anthony.




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent