Page 1 of 1

configuring TagSoup as an External Tool

Posted: Fri Jun 06, 2008 2:22 am
by shudson310
Has anyone configured TagSoup to run as an external tool in oXygen? I keep getting errors from the command line. Here's what I was trying to put in the command config:

java -jar C:\xml\tagsoup-1.2.jar ${cf} > ${cfd}\${cfn}.xhtml

Thanks,

--Scott

Re: configuring TagSoup as an External Tool

Posted: Fri Jun 06, 2008 4:19 pm
by sorin_ristache
Hello,

There is a problem with the output of TagSoup: it is sent to the standard output (the console that started the java command) instead of a file on disk. TagSoup does not have a parameter for saving the output to a file or a URL. Oxygen displays the text that the external tool sends to the standard output in the Oxygen view where the command of the external tool is executed. It does not interpret the '>' character for redirecting the standard output but interprets it as a parameter of the command. You have to use a command like:

Code: Select all

cmd /c "java -jar tagsoup-1.2.jar file:///${cf} > ${cfd}\${cfn}.xhtml"
This is necessary because TagSoup requires a URL for the input file name. The editor variables available for external tools (${cf}, ${cfd}, ${cfne}, etc) are file paths, not URLs so you have to specify for the Oxygen external tool a parameter of the form file:///${cf}. We will add editor variables with URL form in a future version.


Regards,
Sorin

Re: configuring TagSoup as an External Tool

Posted: Fri Jun 06, 2008 4:36 pm
by shudson310
OK, thanks for the tip and the info! I look forward to these additional features! You guys do GREAT work, and it is greatly appreciated!

Best regards,

--Scott