title: Loading XSL file with javascript
body: <p>I am building a web app that converts Mathematical equations written in ascii to MathML format, and then converting the MathML format to OMML format.
  To do so, I found an xsl file that transforms the MathML to OMML using <strong><em>XSLTProcessor</em></strong>.
  In my script i managed to build the MathML file and load it, and to transform it, I'm having serious trouble loading the xsl file using:</p>
  
  <pre><code>    var xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet("MML2OMML.XSL");
  </code></pre>
  
  <p>The app is only a client-side it will be used for individual users, therefore there is no server. 
  So knowing that chrome has permission issues: </p>
  
  <blockquote>
    <p>Origin null is not allowed by Access-Control-Allow-Origin. </p>
  </blockquote>
  
  <p>I learned that I cannot load the xsl file from my local filesystem unless I used <strong><em>FileReader</em></strong> with <strong><em>HTML5</em></strong>, but this requires me to use a form input and I don't want this.</p>
  
  <p>so I tried using a <strong><em>XMLHttpRequest</em></strong> with the file put on my public folder on dropbox using this code:</p>
  
  <pre><code>    var request = new XMLHttpRequest();
      var url = "http://dl.dropbox.com/u/27440550/MML2OMML.XSL";
      request.open("GET",url,true);
      request.send();
      console.log(request.responseXML);
  </code></pre>
  
  <p>And I'm still having the same error </p>
  
  <blockquote>
    <p>Origin null is not allowed by Access-Control-Allow-Origin.</p>
  </blockquote>
  
  <p>Isn't this error generated when Chrome detects that the file being accessed is local? And why is he considering that the file is local when it's on a public storage (Dropbox)?</p>
  
  <p>It's been 2 days I'm searching for an answer and I'm really frustrated. Can someone provide me with a solution? thanks:)!</p>