3 Replies Latest reply on Mar 10, 2011 2:39 PM by cdybdahl

    Changing DITA-OT build arguments in RH8 DITA map import

    cdybdahl

      Hello,

       

      I am looking to modify some of the build arguments RoboHelp 8 uses when importing a DITA map.

      The import dialog allows a few to be specified: running-header (hdr), running-footer (ftr), html-head (hdf), ditaval (filter), and so on.

       

      But I am looking for a way to specify the html file extension string. It does not look like there is a way to change it from the RoboHelp UI, so I assume it is hard-coded (or unspecified) in whatever build script RoboHelp is using to kick off the transformation.

       

      Any chance anyone here is aware of where that script lives in a standard RoboHelp install?

       

      Thanks.

        • 1. Re: Changing DITA-OT build arguments in RH8 DITA map import
          RoboAsh Level 2

          Hi cdybdahl,

                       Can you please elaborate your requirement, as far as I know the option to specify the html file extension string is used to set the file extension of the HTML generated after transformatoion through Dita OTK, but why do you require it and how would you use it as RoboHelp just has extension .htm to all its HTML files created through any method be it import or create new topic.

                 If you need all the .htm topics to renamed to .html then I can provide you with a small JavaScript which will do that in a flick, but it should be done only if it is must!

           

          Ashish

          • 2. Re: Changing DITA-OT build arguments in RH8 DITA map import
            M_Jha Level 1

            Hi,

             

            Added to that if you want to modify any of the DITA OT build arguments apart from what is provided through RH UI, you may use the scripts used in the DITA OT itself.

             

            RoboHelp uses the scripts placed at the location of DITA OT that is pointed to by user in the DITA OT import dialog.

             

            Hope this helps...

            • 3. Re: Changing DITA-OT build arguments in RH8 DITA map import
              cdybdahl Level 1

              I am getting files with a .html extension as a result of the import DITA map feature (I was expecting .htm, as you mentioned). Thankfully, this is a smallish pilot project, so I could change the name of each file manually in the project.

               

              The .htm file extension is a requirement because of the way our help topics are currently mapped. I need to reproduce filenames from DITA source, and these file names are uniformly .htm.

               

              I did try changing the extension in the various xsl scripts for the toolkit's HTML transform, but none of this changed my results. But this is usually passed as a parameter in the build script. I don't see how RoboHelp could be using the build scripts from DITA-OT without modification. One of the parameters you need to pass is the source file name. If you are talking about the XSL scripts, that's a different matter. You can change those all you want, but this particular parameter will always be taken from the ANT build script, and changing that behaviour would require a fairly substantial rewrite to the toolkit XSL code. There must be some facility happening behind the scenes in RH to construct this script.