Page 1 of 1

Conrefing a topicref to a chunked map not supported or done wrong?

Posted: Fri Dec 21, 2018 11:01 am
by d_croft
Hi there,

I'm trying to create a conref to a topicref that in turn points to a chunked map, and it's not working. Using DITA-OT 3.2 in Oxygen. Here's a sample of what I'm trying to do:

Chunked map map.ditamap

Code: Select all


<map>
<topicref href="parent-topic.dita#parent-topic" keyscope="Asdcorp" chunk="to-content select-topic by-document" copy-to="topic-chunk.dita">
<keydef keys="service-name">
<topicmeta>
<keywords>
<keyword>Brand name</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="service-extranet">
<topicmeta>
<keywords>
<keyword>Extranet</keyword>
</keywords>
</topicmeta>
</keydef>
<topicref href="topic1.dita#topic1" toc="no">
<topicref href="topic2.dita#topic2" toc="no"/>
<topicref href="topic3.dita#topic3" toc="no"/>
</topicref>
</topicref>
</map>
The map with the references:

Code: Select all


<map>
<topicref href="map.ditamap" format="ditamap" id="topic-chunk"/>
<topicref conref="#topic-chunk" format="ditamap"/>
</map>
Converting this to HTML results in the following error:

Code: Select all

[DOTX010E]: Unable to find target for conref="#topic-chunk".
The transformation succeeds but the conref isn't resolved, leaving the latter topicref in map.ditamap out completely.

The ID that I'm referring to is 100 % there and correct. Is this functionality not supported in Oxygen/DITA-OT or am I doing something wrong?

If this is not supported, could you give me pointers on how I could create two topicrefs to the same chunked map so that they both refer to the same filename in the transformed output. If I use, for example, <mapref> in either one, the latter one refers to Chunk123456.html and the first one to topic-chunk.dita (copy-to name of chunk), so I though conref would be the logical choice here.

Regards,
Tino

Re: Conrefing a topicref to a chunked map not supported or done wrong?

Posted: Mon Dec 24, 2018 12:05 pm
by Radu
Hi Tino,

Maybe you could do this instead:

Code: Select all

  <topicgroup id="topic-chunk">
<topicref href="test.ditamap" format="ditamap"/>
</topicgroup>
<topicgroup conref="#topic-chunk"/>
Thing is that a topicref to a DITA Map gets replaced in the publishing pre-processing steps directly with the topicrefs which are inside the DITA Map. So the topicref to the DITA Map with that specific @id disappears completely and cannot be found by the conref.
Actually I found an issue logged for this here:

https://github.com/dita-ot/dita-ot/issues/2265

Regards,
Radu

Re: Conrefing a topicref to a chunked map not supported or done wrong?

Posted: Wed Jan 02, 2019 12:17 pm
by d_croft
Hi, this doesn't seem to work. I'm getting the following error:

Code: Select all

Transformation failed. /Applications/Oxygen XML Editor/frameworks/dita/dita-ot-3.2/plugins/org.dita.base/build_preprocess.xml:323: java.lang.IllegalArgumentException: URI has a fragment component
THe problem seems to be with the chunking, since conrefing topicrefs to non-chunked topics works just as I expected.

Re: Conrefing a topicref to a chunked map not supported or done wrong?

Posted: Tue Jan 08, 2019 10:25 am
by Radu
Hi,

Maybe you could create a zip file containing a small sample DITA project exhibiting the last problem and send it to our email (support@oxygenxml.com).
I could try to find some time to look into it.

Regards,
Radu