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

Structured Books and TOCs (attributes)

New Here ,
Aug 27, 2012 Aug 27, 2012

Dear all,

I am currently working on user manuals in a structured framemaker environment, creating books.

In each document, I am working with a top-level element called MainChapter and assign attributes to it to specify the product, version number and language of the user manual. These attributes are then used in variables in the running footer to display said information.

When I generate the TOC for the book, there is obviously no element called MainChapter (as it is an unstructured fm file). Therefore, I understand that the values of the attributes assigned in all the other documents are not available and thus not displayed.

Is there a way I could somehow implement this information in the TOC file? Or do I have to manually update it every time a TOC is generated?

Some help is much appreciated.

TOPICS
Structured
743
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
Guide ,
Aug 28, 2012 Aug 28, 2012
LATEST

Typically, the book itself can be a structured document which contains the book root element that contains the elements corresponding to the root elements in each of the documents in the book. The unstructured content (TEXT) can be wrapped in a special TOC element. The TOC element becomes simply another element within the book's root element. Then the TOC element can have attributes itself, as your other MainChapter elements do.

Instead of the above, you can put attributes in the book's root element that are then seen by all the chapters, as well as the TOC element, in the book. This allows you to set them in only one place, rather than in each chapter.

If your book file does not have structure, you can likely wrap the unstructured content of the TOC with a MainChapter element (IF the MainChapter element allows TEXT alone) and set the attributes in the MainChapter element. Each time you update the book you MAY have to rewrap the TOC's unstructured content. I worked at a company years ago that used this approach; updating the book did not always replace the previous unstructured content with the updated content. I found the workaround was to delete the previous content from the TOC element before updating the book.

In my CURRENT work, my EDD has a TableOfContents element that can contain only TEXT. The unstructured TOC file is in the book but placed at the end of the book file. THEN I open the table of contents FILE (the one containing the TableOfContents ELEMENT) and import the unstructured TOC file into the TableOfContents element BY REFERENCE (the unstructured TOC file becomes a text inset inside the TableOfContents element). This avoids having to delete the content of the TableOfContents element before updating the book; however, you have to update the book twice, once to update the unstructured TOC content and once to update the text inset of the TableOfContents element. It may sound complicated, but it works.

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