Hi All,
I have following map file that is referenced from bookmap.
[engine_spec.ditamap]
<map>
<title>Specification Map</title>
<topicref href="topics/c_spec_title.dita" format="dita" chunk="select-branch
to-content">
<topicref href="topics/r_spec1.dita" format="dita"/>
<topicref href="topics/r_spec2.dita" format="dita">
<topicref href="topics/c_spec3.dita" format="dita"/>
</topicref>
</topicref>
</map>
[bookmap]
<part navtitle="Engine">
<chapter href="engine_spec.ditamap" format="ditamap"/>
</part>
This map structure is expanded in DITA-OT “TopicMerge” as following:
<part navtitle="Engine">
<topicref chunk="select-branch to-content" href="#unique_1" >
<topicref href="#unique_2" />
<topicref href="#unique_3" >
<topicref href="#unique_4" >
</topicref>
</part>
…
<concept id="unique_1">
…
<reference id=”unique_2”>
…
</reference>
<reference id=”unique_3”>
…
<concept id=”unique_4”>
…
</concept>
</reference>
</concept>
If the plug-in traces map structure without considering @chunk attribute, the references (“unique_2”,”unique_3”) and concept (“unique_4”) will be rendered twice in the result PDF. It is not a desired result.
To avoid this, I think it is needed to skip topicref children when topicref/@chunk contains “to-content”. Is it a correct decision?
DITA chunking is very complex to me and I have no test data until now. So I want your advice.
For your reference I don’t use [DITA-OT]/plugins/org.dita.pdf2/xsl/common/topicmerge.xsl for merged middle file processing.
Regards,
Toshihiko Makita
--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<map> <topicref href="ditabase.dita#Y" copy-to="Y.dita" chunk="to-content select-topic"> <topicref href="ditabase.dita#Y1" copy-to="Y1.dita" chunk="to-content select-branch"/> <topicref href="ditabase.dita#Y2" copy-to="Y2.dita" chunk="to-content select-topic"/> </topicref> </map>