configuring TagSoup as an External Tool
Oxygen general issues.
-
- 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
java -jar C:\xml\tagsoup-1.2.jar ${cf} > ${cfd}\${cfn}.xhtml
Thanks,
--Scott
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Staff Content Engineer
Site: docs.servicenow.com
-
- 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:
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
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"
Regards,
Sorin
-
- 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
Best regards,
--Scott
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Staff Content Engineer
Site: docs.servicenow.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service