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

Creating mini toc for structured document

Explorer ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

Hello.
I'm here to ask the problem to make mini toc automatically.
I'm dealing with structured document so I can't use the menu to make mini toc.

Even I try to convert xml to fm file or erasing structure menu, I couldn't make mini toc.
Is there anyway to make mini toc automatically for structured document with scripting or somthing?
I wish I can get some tips to learn about this.
Thank you for reading this.

 

ps. In ditamap, there is the top level topic xml document and 2 level topics are under top topc as different documents like the below image.

20240310_234744.png

TOPICS
FAQ , Scripting , Structured , XML author

Views

169

Translate

Translate

Report

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
Community Expert ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

I don't work in structured FM, so have no direct insight. I see that the same question was asked here in 2017, and it didn't get an answer then.

Assuming that the direct answer is: you can't,
I'm wondering if a work-around might be to generate a regular …toc.fm file whose scope is restricted to the chapter, not make it part of the .book, and import its Flow A as a Text Inset in the real chapter file. What would need testing is making sure that the hypertext in the final document works.

Votes

Translate

Translate

Report

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
Explorer ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

Thank you for ur answer. I will consider more.

Votes

Translate

Translate

Report

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
Community Expert ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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
Community Expert ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

Here is an 11 minute video that outlines a way to add a mini-TOC to a FrameMaker DITA topic. It's unedited and a bit rough, but it should give you an idea of what is possible. Please let me know if you have any questions or comments.

 

https://youtu.be/fPfq_PmosE8

Votes

Translate

Translate

Report

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
Explorer ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

Thank you for ur help and kindness always. I will check it. 

Votes

Translate

Translate

Report

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
Explorer ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

Oh, I've watched your youtube and that video oviously so I was learning to make xsl too.
I have a question about it.
My ditamap structure has top level xml.
and have a few 2 level xmls.

all xml is structured with only one topic.

In this condition, I try to make mini toc in body of top level xml.
is it possible to get target Id from other xml which are 2 level xmls?

Votes

Translate

Translate

Report

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
Community Expert ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

Yes, you should be able to do this using the href attributes that point to the level 2 topics. Without seeing your structure, it's difficult to give an exact answer.

Votes

Translate

Translate

Report

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
Explorer ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

yes, I succeed to do it. when 2 level topics are within highest-level topic in same xml.
but in my case, ditamap is constructured like image.
each xml has only one topic, so A xml doesn't have any 2 level topics in xml.
I want to have cross reference (B, C xml's topic) in body tag of A xml.
Is it possible to do this with xsl to make mini toc?

Votes

Translate

Translate

Report

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
Community Expert ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

Yes it is possible. If you can send me a sample ditamap and topics, I can see what I can do.

rick at frameexpert dot com

Votes

Translate

Translate

Report

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
Explorer ,
Mar 18, 2024 Mar 18, 2024

Copy link to clipboard

Copied

LATEST

Hello, Rick.

Sorry for my late my answer. 

I have tried my self for days.

But I couldn't solve the problem so I sent u mail with my sample datas.

Votes

Translate

Translate

Report

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