Project

Profile

Help

Saxon Error - Exception thrown by URIResolver

Added by Anonymous about 15 years ago

Legacy ID: #7731738 Legacy Poster: Dave Rogers (daverog)

Hi, About 6 months ago, I was using Saxon to learn xQuery. I came back to use it today, and cannot get Saxon working. The command that I am using from the bin directory is : Query -t -s person.xml p.xq > ans.xml The output to console is: Saxon 9.1.0.7N from Saxonica .NET 2.0.50727.4200 on Microsoft Windows NT 6.0.6002 Service Pack 2 Analyzing query from p.xq Analysis time: 246 milliseconds Processing file:/E:/xQuery/saxonDotNet/saxonsa9-1-0-7n/bin/person.xml Source document ignored - query does not access the context item Error FODC0002: Exception thrown by URIResolver: Could not find file 'E:\xQuery\saxonDotNet\saxonsa9-1-0-7n\bin\Person'. Query processing failed: Run-time errors were reported Have I forgotten something?


Replies (3)

Please register to reply

RE: Saxon Error - Exception thrown by URIResolver - Added by Anonymous about 15 years ago

Legacy ID: #7732486 Legacy Poster: Michael Kay (mhkay)

I can't reproduce this. Given a query that doesn't access the context item, like "2+2", if person.xml does exist I get: Saxon 9.1.0.7N from Saxonica .NET 2.0.50727.3603 on Microsoft Windows NT 6.0.6001 Service Pack 1 Analyzing query from test.xq Analysis time: 642 milliseconds Processing file:/e:/temp/person.xml Source document ignored - query does not access the context item <?xml version="1.0" encoding="UTF-8"?>4 Execution time: 156 milliseconds while if person.xml doesn't exist, I get Saxon 9.1.0.7N from Saxonica .NET 2.0.50727.3603 on Microsoft Windows NT 6.0.6001 Service Pack 1 Source file person.xml does not exist Perhaps in your situation, the source file does exist, but can't be opened for some reason?

RE: Saxon Error - Exception thrown by URIResolver - Added by Anonymous about 15 years ago

Legacy ID: #7732492 Legacy Poster: Michael Kay (mhkay)

Alternatively, perhaps your query is reading a file called "Person" using the doc() function? It's very hard to debug code that you haven't been shown...

RE: Saxon Error - Exception thrown by URIResolver - Added by Anonymous about 15 years ago

Legacy ID: #7732774 Legacy Poster: Dave Rogers (daverog)

I goofed. In my doc function, I was calling doc("person") instead of doc("person.xml"). I am really sorry for wasting your time. It took me ages to see that mistake. Thanks for looking at this for me. And once again, sorry.

    (1-3/3)

    Please register to reply