Project

Profile

Help

Bug #5564

closed

On Windows, SaxonCS Query command line -o:test.xml fails "The path is empty"

Added by Michael Kay over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command Line
Sprint/Milestone:
-
Start date:
2022-06-14
Due date:
% Done:

100%

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

Description

If SaxonCS XQuery is called from the command line with the -o option and the filename includes no path component (e.g. -o:test.xml) it fails with the error

System.ArgumentException: The path is empty. (Parameter 'path')
   at System.IO.Path.GetFullPath(String path)
   at Saxon.Ejava.io.File..ctor(String name)
   at Saxon.Ejava.io.File.getParentFile()

Workaround: use -o:./test.xml.

Please register to edit this issue

Also available in: Atom PDF