{"id":494,"date":"2016-03-22T13:08:43","date_gmt":"2016-03-22T12:08:43","guid":{"rendered":"http:\/\/xml-buddy.com\/xmltribune\/?p=494"},"modified":"2016-03-22T16:41:28","modified_gmt":"2016-03-22T15:41:28","slug":"integrate-dita-open-toolkit-as-external-command","status":"publish","type":"post","link":"https:\/\/www.xml-buddy.com\/xmltribune\/integrate-dita-open-toolkit-as-external-command\/","title":{"rendered":"Integrate DITA Open Toolkit as external command"},"content":{"rendered":"<p>It is quite easy to use the DITA Open Toolkit from XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> as an external tool. The DITA standard is used to produce\u00a0various output formats including HTML and PDF from XML. This usually happens with the help of Java and some ant tasks. To simplify the process the DITA Open Toolkit provides a batch task which only takes a few parameters and bundles all of the required steps.<\/p>\n<p>To quickly run the DITA process to generate the output you want to a seperate folder you just need to add this batch task to the XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> editor as an external tool:<\/p>\n<div id=\"attachment_512\" style=\"width: 732px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/xml-buddy.com\/xmltribune\/wp-content\/uploads\/2016\/03\/dita-ot-external-tool.png\" rel=\"attachment wp-att-512\"><img aria-describedby=\"caption-attachment-512\" loading=\"lazy\" class=\"size-full wp-image-512\" src=\"http:\/\/xml-buddy.com\/xmltribune\/wp-content\/uploads\/2016\/03\/dita-ot-external-tool.png\" alt=\"DITA-OT as external tool\" width=\"722\" height=\"473\" srcset=\"https:\/\/www.xml-buddy.com\/xmltribune\/wp-content\/uploads\/2016\/03\/dita-ot-external-tool.png 722w, https:\/\/www.xml-buddy.com\/xmltribune\/wp-content\/uploads\/2016\/03\/dita-ot-external-tool-300x197.png 300w, https:\/\/www.xml-buddy.com\/xmltribune\/wp-content\/uploads\/2016\/03\/dita-ot-external-tool-624x409.png 624w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><p id=\"caption-attachment-512\" class=\"wp-caption-text\">DITA-OT as external tool<\/p><\/div>\n<p>Here is the input for\u00a0the &#8220;Arguments&#8221; field to copy-paste it:<br \/>\n-i &#8220;$(SelectedPath)&#8221; -f html5 -o &#8220;$(CurrentFolder)\\$(SelectedFileTitle)&#8221;<\/p>\n<p>You can download and learn more about the DITA Open Toolkit <a href=\"http:\/\/www.dita-ot.org\/2.0\/quickstartguide\/using-dita-command.html\" target=\"_blank\">here<\/a>.<\/p>\n<p style=\"opacity:0.5;padding:0;margin:0;display:inline;\"><sub><a href=\"#\" onclick=\"window.open('https:\/\/www.janhvizdak.com\/rdr.me.1'); return false;\" target=\"_blank\" style=\"cursor:help;\"><b>&#187;crosslinked&#171;<\/b><\/a><\/sub><\/p>","protected":false},"excerpt":{"rendered":"<p>It is quite easy to use the DITA Open Toolkit from XML ValidatorBuddy as an external tool. The DITA standard is used to produce\u00a0various output formats including HTML and PDF from XML. This usually happens with the help of Java and some ant tasks. To simplify the process the DITA Open Toolkit provides a batch task which only takes a&#8230; <a href=\"https:\/\/www.xml-buddy.com\/xmltribune\/integrate-dita-open-toolkit-as-external-command\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[6],"tags":[81,66,82],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/494"}],"collection":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":2,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":513,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/494\/revisions\/513"}],"wp:attachment":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}