Project

Profile

Help

How to provide configuration file on command line on Windows with SaxonCS?

Added by Martin Honnen about 3 years ago

I am trying to run SaxonCS on Windows 10, using the -config option to provide a configuration file but I get an error System.UriFormatException: Invalid URI: The format of the URI could not be determined even for a simple file name:

PS C:\Users\marti\OneDrive\Documents\xslt\xslt4-examples> & 'C:\Program Files\Saxonica\SaxonCS-11.0\SaxonCS.exe' transform  -t -it -xsl:separator-examples\for-each-separator-test1.xsl -config:saxoneexslt4XPath4syntaxextensions-config.xml
Unhandled exception. System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at Saxon.Impl.Helpers.DotNetPlatform.resolveSource(Source source, Configuration config) in C:\Users\ndw\saxondev\src\main\saxon-cs\engine\Saxon\Impl\Helpers\DotNetPlatform.cs:line 431
   at Saxon.Hej.trans.ConfigurationReader.makeConfiguration(Source source) in C:\Users\ndw\saxondev\build\cs\Saxon\Hej\trans\ConfigurationReader.cs:line 66
   at Saxon.Hej.Transform.doTransform(String[] args) in C:\Users\ndw\saxondev\build\cs\Saxon\Hej\Transform.cs:line 102
   at Saxon.Hej.Transform.main(String[] args) in C:\Users\ndw\saxondev\build\cs\Saxon\Hej\Transform.cs:line 18
   at Saxon.Cmd.Command.Main(String[] args) in C:\Users\ndw\saxondev\src\main\saxon-cs\engine\Saxon\Cmd\Command.cs:line 20

Replies (1)

RE: How to provide configuration file on command line on Windows with SaxonCS? - Added by Michael Kay almost 3 years ago

Sorry that I never responded to this. I've checked on the current build that configuration files are now being read from the command line successfully.

    (1-1/1)

    Please register to reply