History
I wrote a custom script that takes some HTML output and organizes it into DITA files. This results in around 20,000 individual DITA files, each mapped into the DITA map. The DITA map ends up being the TOC.
In an effort to reduce the 20,000 single files that I'm cramming through Flare, I decided to modify my script to rewrite the DITA files and map, so that I'm using multiple topics inside a single topic. The idea is to hopefully reduce the size of the end project and reduce the number of files (Windows absolutely hates 20,000 files in a single directory... just opening up an explorer window to look at the files is a multiple minute process at times... oh Flare, why aren't you available on UNIX/Linux/Mac OS X...).
Current Problem
The problem I've seen is two-fold. First, upon import of the DITA map, Flare breaks out the files into separate files, so you end up with a large number of files, which was the problem to begin with. Second, it's not using those files! Let's say the first file (your master file) is: A_123.xml, it has three topics inside with reference IDs of A234, A235, and A236 (for those non-DITA folks I haven't lost yet, all DITA IDs must begin with an alpha character). Inside the map, it looks something like this:
A_123.ditamap
Code: Select all
<map id="v815942" title="MyBigRegister">
<topichead navtitle="BigRegister Area">
<topicref type="reference" href="A_134.xml#A234" />
<topicref type="reference" href="A_134.xml#A235" />
<topicref type="reference" href="A_134.xml#A236" />
</topichead>
</map>
Since the master file is called A_134, Flare breaks up the content into four files: A_134, A_1311, A_1312, and A_1313
Note: This by the way MadCap is not a good idea. How do you know I don't have a file called A_1313 already in my project? I know most people use human readable file names, but there are times when numbers are part of the file name for various reasons (hardware addresses for example).
As I see it, two things are wrong here, in Flare's TOC, A_1311, A_1312, and A_1313 are never used! All items in the TOC point back to A_134, yet inside A_134 there are no markers breaking up the items in the XHTML file Flare creates. You can manually enter bookmarks and set them in the TOC, but if you have 20,000 of them, you don't want to do this.
So, the question after all of this is, does anybody try to use DITA as an import and if so, are you doing it by having each topic as its own file, or are you trying to use multiple topics inside a single file? If inside a single file, have you noticed the above behavior?
Thanks!
Wayne