Project

Profile

Help

Problem testing SaxonCE locally

Added by Robert Muetzelfeldt over 11 years ago

I've unzipped Saxon-CE into a local directory, and tried to test it out using the 'book' sample application. I get the following message in the Chromium console:

Unsafe JavaScript attempt to access frame with URL file:///home/robert/Projects/XMILE/Saxon/test_books/books.html from frame with URL file:///home/robert/Projects/XMILE/Saxon/Saxonce/6D08C01821381D35BD12009B44D2D65D.cache.html. Domains, protocols and ports must match.

Do I have to install it on a server (as implied in the Installation section), or should I be able to use it locally?

Thanks, Robert


Replies (3)

Please register to reply

RE: Problem testing SaxonCE locally - Added by O'Neil Delpratt over 11 years ago

Yes indeed, you will need some sort of web server. If locally, you can install IIS (on windows only) or apache2. There are many lite weight applications that can act as a http server. The mac os has a inbuilt web server software available too.

RE: Problem testing SaxonCE locally - Added by Michael Kay over 11 years ago

I believe there might be some browser and some set of security configuration parameters that makes it possible to use Saxon-CE locally, but it's definitely simpler to set up a local HTTP server such as Jetty.

RE: Problem testing SaxonCE locally - Added by Dino Fancellu over 11 years ago

For chrome anyway its

chrome.exe -allow-file-access-from-files

If one dash doesn't work try 2 dashes.

http://stackoverflow.com/questions/4270999/google-chrome-allow-file-access-from-files-disabled-for-chrome-beta-8

Kind of handy when you can't be bothered with a local file server,

    (1-3/3)

    Please register to reply