Project

Profile

Help

Bug #5880

closed

-p:on command line option with XQuery seems to give "Static error in query: Exception in ModuleURIResolver"

Added by Martin Honnen about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Command Line
Sprint/Milestone:
-
Start date:
2023-02-10
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, 12
Fix Committed on Branch:
11, 12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

I am trying to use the -p:on command line option with XQuery, however with 11.5 Java HE and EE as well as with SaxonCS 11.5 as well as with 12.0 EE I get an error Static error in query: Exception in ModuleURIResolver.

File attached and inline:

declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";

declare option output:method "html";
declare option output:html-version "5";
declare option output:media-type "text/html";
declare option output:indent "no";

doc('https://martin-honnen.github.io/xml/2023/test2023020801.xml?strip-space=yes')

Output of runs:

PS C:\Users\marti\OneDrive\Documents\XQuery\strip-space> java -cp 'C:\Program Files\Saxonica\SaxonHE11-5J\saxon-he-11.5.jar' net.sf.saxon.Query -t -p:on -q:strip-space-url-param1.xq
SaxonJ-HE 11.5 from Saxonica
Java version 11.0.12
Analyzing query from strip-space-url-param1.xq
Static error in query: Exception in ModuleURIResolver:
PS C:\Users\marti\OneDrive\Documents\XQuery\strip-space> java -cp 'C:\Program Files\Saxonica\SaxonEE11-5J\saxon-ee-11.5.jar' net.sf.saxon.Query -t -p:on -q:strip-space-url-param1.xq
SaxonJ-EE 11.5 from Saxonica
Java version 11.0.12
Using license serial number ...
Analyzing query from strip-space-url-param1.xq
Static error in query: Exception in ModuleURIResolver:
PS C:\Users\marti\OneDrive\Documents\XQuery\strip-space> java -cp 'C:\Program Files\Saxonica\SaxonEE12-0J\saxon-ee-12.0.jar' net.sf.saxon.Query -t -p:on -q:strip-space-url-param1.xq
SaxonJ-EE 12.0 from Saxonica
Java version 11.0.12
Using license serial number ...
Analyzing query from strip-space-url-param1.xq
Static error in query: Exception in ModuleURIResolver:
PS C:\Users\marti\OneDrive\Documents\XQuery\strip-space> java -cp 'C:\Program Files\Saxonica\SaxonHE12-0J\saxon-he-12.0.jar' net.sf.saxon.Query -t -p:on -q:strip-space-url-param1.xq
SaxonJ-HE 12.0 from Saxonica
Java version 11.0.12
Analyzing query from strip-space-url-param1.xq
Static error in query: Exception in ModuleURIResolver:
PS C:\Users\marti\OneDrive\Documents\XQuery\strip-space> & 'C:\Program Files\Saxonica\SaxonCS-11.5\SaxonCS.exe' query -t
 -p:on -q:strip-space-url-param1.xq
SaxonCS-EE 11.5 from Saxonica
.NET 6.0.10 on Windows 10.0.22621.0
Using license serial number ..
Analyzing query from strip-space-url-param1.xq
Exception in ModuleURIResolver: : Object reference not set to an instance of an object.
Exiting with code 2

Norm says HE is not supposed to support -p but that the error for EE is a bug.

SaxonCS 12.0 does seem to work, though


Files

strip-space-url-param1.xq (326 Bytes) strip-space-url-param1.xq Martin Honnen, 2023-02-10 15:51

Please register to edit this issue

Also available in: Atom PDF