How to duplicate content on nested chunks

18 views
Skip to first unread message

Damaris Lujan

unread,
Jun 10, 2019, 7:29:55 PM6/10/19
to DITA-OT Users
Hi,

I have the following main ditamap:
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
    <title>Chunking test map</title>
  <topicref href="generic_topic_1.dita"/>
  <topicref href="topic_with_map_child.dita" chunk="to-content">
    <topicref href="generic_topic_2.dita"/>
    <topicref href="child_map_1.ditamap" format="ditamap"  chunk="to-content" />
  </topicref>
</map>

and the inner ditamap:
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
    <title>Child map 1</title>
  <topicref href="child_map_topic_1.dita"/>
  <topicref href="child_map_topic_2.dita"/>
</map>

The problem is the chunks of content, when published, must contain all child content, whether or not that child content is also chunked. This will lead to duplicated content when nested chunking in the source exists.

For example, currently the output is like this:
topic_with_map_child.html
1. topic_with_map_child.png

Output file for child_map_1.ditamap, Chunk####.html

2. Chunk inside.png

But the editors want the the topic_with_map_child.html output, contains athe content of its child child_map_1.ditamap, like this:

3. Merged father.pngHaving as a result, a duplicate content of "Child Map topic 1" and "Child Map topic 2".

Reply all
Reply to author
Forward
0 new messages