[xquery-talk] Using UNC file paths in Saxon Xquery
Michael Kay
mhk at mhk.me.uk
Tue Jan 17 23:25:37 PST 2006
Saxon.NET is essentially Saxon recompiled using the IKVM compiler, using the
GNU Classpath for its runtime support. The URI resolution therefore depends
on what GNU Classpath does. There's no standard for how to map URIs to UNC
filenames, so it's quite likely to vary from one implementation to another,
and the best place to get an answer might be on a GNU Classpath forum
(http://www.gnu.org/software/classpath/). I'm afraid I'm only just beginning
to get to grips with the Saxon.NET port myself, so I can't help you very
much. I would suggest that the easiest solution is to write your own
URIResolver, but I can't even be 100% certain that the Saxon.NET port offers
that capability (I wasn't involved in creating it).
Michael Kay
http://www.saxonica.com/
_____
From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On Behalf Of
Alexander, Kim (Kim)
Sent: 17 January 2006 22:50
To: talk at xquery.com
Subject: [xquery-talk] Using UNC file paths in Saxon Xquery
Hi All,
I'm needing a bit of help.
I'm using the Saxon implementation of XQuery (actually Saxon.Net) on Windows
and am enjoying having the ability to tinker with Xquery from DotNet sans
SQL Server.
I'm trying to make use of UNC file paths in my XQuery and am getting a error
I haven't been able to resolve - possibly because I'm not familiar enough
with Java..
The Error is::
Error at function local:Combine() on line 85
Invalid URI {file:////tsclient/C/_Backup_of...} - base
{file:/c:/_temp/Coll_APP.xml}:
doesn't match URI regular expression:
file://tsclient/C/_Backup_offline/UALogs/APS/Log_2005-12-14_Log
.xml
Here's Coll_APP.xml
<?xml version="1.0" encoding="UTF-8"?>
<collection>
<doc
href="file:////tsclient/C/_Backup_offline/UALogs/APS/Log_2005-12-14.xml" />
<doc
href="file:////tsclient/C/_Backup_offline/UALogs/APS/Log_2005-12-15.xml" />
<doc
href="file:////tsclient/C/_Backup_offline/UALogs/APS/Log_2005-12-16.xml" />
<doc
href="file:////tsclient/C/_Backup_offline/UALogs/APS/Log_2005-12-17.xml" />
</collection>
I've read a post on SourceForge in the Saxon.Net project forum that
suggested using 4 forward slashes
As I've done above but that got the error above, I've also tried three and
two slashes without success.
Please forward me any suggestions you may have.
Thanks,
K. Alexander
******************************************************************
This email and any files transmitted with it from the ElPaso
Corporation are confidential and intended solely for the
use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the
sender.
******************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20060117/b03cff95/attachment.htm
More information about the talk
mailing list