CHM Index customization


We need to customize the HHK file of a CHM output so that the file names are determined by the contents of <resourceid> rather than just using the file name. If no <resourceid> exists, the html file saves according to the name of the DITA file, but if a <resourceid> exists it specifies the required name of the file. This was necessary due to a migration of content from another system; the software is looking for a specific file name that was generated out of the old system, but we don't want to keep the non-human readable file names in the new system. So existing topics use the <resourceid> to specify the old file name to use when outputting to the CHM used for context sensitive help. We successfully have all links and the ToC working correctly, but are unable to figure out how to write the correct file names to the HHK file for the index.