can't get -it parameter to work?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

can't get -it parameter to work?

Post 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?
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

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

Post 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
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply