#35 Running with parameters set failing

General (7)
Dan Vint

I have a stylesheet wiht the following paramerter set
<xsl:param name="outputdir">file:///C:/output</xsl:param>

Everything runs fine and I get output where I expect it.

If I try and assign the parameter at run time, this is what appears in the dialog:


when I then run the stylesheet with making no changes I'll get an error:

net.sf.saxon.trans.XPathException: Invalid syntax for base URI
Invalid syntax for base URI

I was able to see the path in the error message in v1.6.1 an it is getting %22c:\output%22

I've tried remving the quotes, removing the surrounding functions and they all come back with the same result.


  • Andrew Welch

    Andrew Welch - 2013-02-14


    Are you able to post (or direct mail me) a small complete runnable sample so I can reproduce the issue?


  • Dan Vint

    Dan Vint - 2013-02-14

    ok, take a look at the attached stylesheet. When I run it with the default parameters set with the stylesheet I get this output

    <?xml version="1.0" encoding="utf-8"?>
    outputdir = [file:///C:/output]
    date = [19 July 2012]
    pubnum = [xx-123-45_23&amp;P]
    pubID = [xx-123-45_]
    changenumber = [0]
    ripstl = [rxx.EXE xx-123-45_3&amp;P -G foo]

    when I try to pass a parameter I get

    <?xml version="1.0" encoding="utf-8"?>
    outputdir = [DocumentInstr(ValueOf("file:///C:/output"))]
    date = [true]
    pubnum = [true]
    pubID = [true]
    changenumber = [true]
    ripstl = [true]

    this is the way the auot populate creates the value DocumentInstr(ValueOf("file:///C:/output")) even if I strip it down to just the file path, I get the same result

  • Dan Vint

    Dan Vint - 2013-02-14
  • Dan Vint

    Dan Vint - 2013-02-14

    FYI I was able to see the %22 result becasue I wsa trying to write a result-file from the stylesheet.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks