Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Setting Filename for Chunked Content

Guest
Jun 06, 2011 Jun 06, 2011

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?

TOPICS
Structured
476
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 06, 2011 Jun 06, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines