Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: transformNode throws "Access is denied" error

From: Chuck Jungmann <NOchuckSPAM@----.--->
To: NULL
Date: 5/5/2006 11:58:00 AM

I finally figured it out.

I had been using XMLHttpRequest to get XML documents from various
sources (XML files, SQL Server templates, ASP pages, etc.) so I used
it to get the XSL file as well.  I figured that XMLHttpRequest is
supported on a number of browsers, even if transformNode() isn't and
if in the future I needed cross-browser support (I don't for this
application), it would require fewer changes.

Having successfully used transformNode() in a browser script on a
PocketPC  using a Microsoft.XMLDOM object, I thought I wouldI try
using that to load the stylesheet in this case as well. When I used
the XMLDOM-loaded stylesheet with the XMLHttpRequest-loaded XML,
transformNode() worked perfectly.

I'm guessing that the XMLHttpRequest object is restricted for some
reason, or perhaps further steps might have allowed me to use the
XMLHttpRequest-loaded stylesheet.  In the future, however, I may try
to restrict my use of XMLHttpRequest to situations where I need to
pass parameters.

Thanks for your response...
Chuck

On Thu, 04 May 2006 12:08:21 +0200, "Oleg Tkachenko [MVP]"
<some@b...> wrote:

>Access denied implies some access.
>By any chance do you have xsl:import/xsl:include statements or 
>document() function calls in your stylesheet?



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