Page 1 of 1

can't get -it parameter to work?

Posted: Tue Sep 25, 2012 11:39 pm
by sderrick
Version 14, Linux

I'm processing a non-xml file into an xml file.

Using the unparsed-text(filename) function.

I have a named template I want to call when I execute the script. I'm trying to run it in the debugger using the -it parameter.

my template

<xsl:template match="/" name="main" mode="#all">

I have "main" entered into the "Template ("-it"): box

when I step into the script I get the debugger errors, F Content not allowed in prolog

Which indicates the editor is passing the name of the document to saxon using he -s parameter, but I can't finds a way to tell it not too?

Re: can't get -it parameter to work?

Posted: Wed Sep 26, 2012 5:40 pm
by adrian
Hi,

Note that the XSLT debugger is designed to use an XML input (see the XML combo from the toolbar). If you're not actually using the XML input, please open and select a dummy XML file (any XML well-formed file will do). If you are currently using a non-XML file as the XML input, it will fail with "F Content not allowed in prolog".

Regards,
Adrian

Re: can't get -it parameter to work?

Posted: Wed Sep 26, 2012 11:11 pm
by sderrick
Yes I figured out that work around for the bug in your UI.

Buts its not good enough. To properly debug a script I need to call it like it is called "in the wild". Supplying the -s option to the script in the debugger is not the same as not supplying it when I use it in production.

I need a way to not supply the -s option when debugging a script.

Please enter this as a bug or flaw in the debugger UI.

thanks,

Scott

Re: can't get -it parameter to work?

Posted: Thu Sep 27, 2012 2:21 pm
by adrian
Hi,

You are right, I see that the transformation scenarios allow the XML to be omitted if an initial template is specified, but the XSLT debugger does not.

I've logged this problem to our issue tracking tool to be resolved in a future version.

Regards,
Adrian