Copy link to clipboard
Copied
I am using FrameMaker 9 to generate XHTML output from XML files using the DITA-FMx plugin. The XML was converted from unstructured files so each XML file contains several related topics. I'm generating from a bookmap that has a chapter element for each of the XML files. I've then set the chunk attribute for each chapter element to "by-topic". This produces the output I'm looking for where each topic in the chapter generates a separate HTML file. However, the names of the HTML files are all based on the id attributes, which were automatically generated and are not very meaningful for humans. For example, the file names are things like i37215.html and i45200,html. I'm wondering if there is a way to specify the filename (or a prefix) for these chunked files.
If I have a chapter called "Preface" that has two topics within it. When generating, I'd like to produce the following files:
preface.html
preface1.html
preface2.html
A second choice would be to use the title of the topic. So for the same Preface chapter it would be something like:
preface.html
whatcanitdo.html
howdoesitwork.html
Is there a way to control the name of the file that is generated by chunking?
Copy link to clipboard
Copied
You can use the @copy-to attribute on topicrefs to specify the output name, but that's in conjunction with adding a topicref for each nested topic and specifying the @chunk="to-content select-topic". I haven't messed around with chunking much so don't know if there are other ways to do this.
<topicref navtitle = "Nested Topic One"
href = "topics/nested_topics.dita#_a2fe8326-adf1-49e5-820b-e3ee1209a6f0"
copy-to = "nested_topics-1.dita" type = "topic"
chunk = "to-content select-topic"></topicref>
Since this is really a DITA-OT question and not so much related to Frame or DITA-FMx, you would probably get better responses by posting to the dita-users Yahoo group.
Cheers,
...scott
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more