configuring TagSoup as an External Tool

Oxygen general issues.
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

configuring TagSoup as an External Tool

Post 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
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: configuring TagSoup as an External Tool

Post 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
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: configuring TagSoup as an External Tool

Post 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
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Post Reply