https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2023-01-28T21:05:36ZSaxonica Developer CommunitySaxon - Bug #5863: file:/// URIs do not resolve correctlyhttps://saxonica.plan.io/issues/5863?journal_id=227832023-01-28T21:05:36ZMartin Honnenmartin.honnen@gmx.de
<ul></ul><p>Just curious, on what platform does the <code>document('file:/home/user/file.xml')</code> access fail? I have tried with Linux and it doesn't fail, the URI is resolved as you describe but the document can be accessed by the <code>document</code> function.</p> Saxon - Bug #5863: file:/// URIs do not resolve correctlyhttps://saxonica.plan.io/issues/5863?journal_id=227842023-01-28T21:10:56ZMartynas Jusevicius
<ul></ul><p>My bad! <code>document('file:/home/user/file.xml')</code> works...</p> Saxon - Bug #5863: file:/// URIs do not resolve correctlyhttps://saxonica.plan.io/issues/5863?journal_id=227852023-01-28T23:28:23ZMichael Kaymike@saxonica.com
<ul></ul><p>I find the Wikipedia article</p>
<p><a href="https://en.wikipedia.org/wiki/File_URI_scheme" class="external">https://en.wikipedia.org/wiki/File_URI_scheme</a></p>
<p>more helpful than the RFCs, though RFC 8089 does clear up a lot of the confusion that existed previously.</p>
<p>Both file:///x/y/z and file:/x/y/z are legal and widely accepted, but the precise details of what works depends on the software you are using to retrieve the resource (which will be somewhere on the stack well below the Saxon level).</p> Saxon - Bug #5863: file:/// URIs do not resolve correctlyhttps://saxonica.plan.io/issues/5863?journal_id=227872023-01-30T09:20:39ZNorm Tovey-Walsh
<ul></ul><p>In the second comment you say</p>
<blockquote>
<p>My bad! document('file:/home/user/file.xml') works...</p>
</blockquote>
<p>Does that mean your problem has been resolved?</p> Saxon - Bug #5863: file:/// URIs do not resolve correctlyhttps://saxonica.plan.io/issues/5863?journal_id=227882023-01-30T09:24:38ZMartynas Jusevicius
<ul></ul><p>Yes! Sorry for the noise.</p> Saxon - Bug #5863: file:/// URIs do not resolve correctlyhttps://saxonica.plan.io/issues/5863?journal_id=227932023-01-30T12:29:36ZNorm Tovey-Walsh
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Rejected</i></li></ul><p>No problem. It's an easy bug report to resolve in that case :-)</p>