title: Why is an external document resolved in Altova XMLSpy but not in SaxonHE10?
body: <p>I want to load an external XML-document into a variable, which works in Altova XMLSpy but not in SaxonHE10.</p>
  <p>In Altova XMLSpy the following XSLT 2.0 line returns <code>true</code>.</p>
  <pre><code>&lt;xsl:copy-of select=&quot;fn:doc-available('https://www.xrepository.de/api/version_codeliste/urn:de:bund:destatis:bevoelkerungsstatistik:schluessel:staat_2019-02-01/genericode')&quot;/&gt;
  </code></pre>
  <p>In my local SaxonHE10 installation it returns <code>false</code>.</p>
  <p>Are there any commandline parameters I can use to change this behavior?</p>
  <p>Addition 18.10.2021 13:12:
  The comment section ist to small, so I edit my question:
  That is the XSLT:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
  &lt;xsl:stylesheet
      version=&quot;2.0&quot; 
      xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
      xmlns:html=&quot;http://www.w3.org/1999/xhtml&quot;
      xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
      xmlns:fn=&quot;http://www.w3.org/2005/xpath-functions&quot;
      xmlns:xdf3=&quot;urn:xoev-de:fim:standard:xdatenfelder_3.0.0&quot; 
      xmlns:gc=&quot;http://docs.oasis-open.org/codelist/ns/genericode/1.0/&quot; 
      exclude-result-prefixes=&quot;html&quot;
  &gt;
      &lt;xsl:template match=&quot;/&quot;&gt;
          &lt;xsl:message&gt;
              &lt;xsl:copy-of select=&quot;fn:doc-available('https://www.xrepository.de/api/version_codeliste/urn:de:bund:destatis:bevoelkerungsstatistik:schluessel:staat_2019-02-01/genericode')&quot;/&gt;
          &lt;/xsl:message&gt; 
          &lt;xsl:message&gt;
              &lt;xsl:copy-of select=&quot;fn:document('https://www.xrepository.de/api/version_codeliste/urn:de:bund:destatis:bevoelkerungsstatistik:schluessel:staat_2019-02-01/genericode')&quot;/&gt;                                  
          &lt;/xsl:message&gt; 
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  <p>That is the command call:</p>
  <pre><code>&quot;C:\Program Files\Saxonica\SaxonHE10.2N\bin\Transform.exe&quot; -s:test.xml -xsl:test.xsl 
  </code></pre>
  <p>This is the result:</p>
  <pre><code>false
  Error FODC0002 while evaluating xsl:message at line 20 of file:/C:/Users/Volker/Dropbox/FIM/Tools/QS%20Datenfelder/test.xsl: Document has been marked not available: https://www.xrepository.de/api/version_codeliste/urn:de:bund:destatis:bevoelkerungsstatistik:schluessel:staat_2019-02-01/genericode
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  </code></pre>