xsl-list
[Top] [All Lists]

Re: [xsl] Inserting XML into stylesheet using copy-of

2010-01-27 08:12:30
On Wed, 2010-01-27 at 15:03 +0100, Martin Honnen wrote:
Rob Belics wrote:

Hmm. Transferring those files to my server and now I can see the
inserted xml. So, apparently, there is a reason why this does not work,
or display, when the main xml/xslt is local, on my home office computer,
and the inserted xml file is on the server, but works when the xml/xslt
and inserted xml are all on the remote server. 

I need to clean that up a bit if you still want to see it but any ideas
on what the problem could be?

That's simply the same origin policy that browsers apply for security 
reasons, for XSLT that means that a stylesheet loaded from e.g. 
http://example.com can load other resources from http://example.com/ but 
is not allowed to load resources from a different origin like e.g. 
http://example.org/.
Check the error console of your browser, at least Firefox should display 
a security error in that case.


I forgot. The obvious question is what to do for local testing when such
files are on a remote server?


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--