Page 1 of 1

New ditamaps are referenced as "topicref" instead of "mapref"

Posted: Fri Apr 15, 2016 11:36 am
by Anonymous1
Hello,

when I am creating a new ditamap via right-clicking in the DITA Maps Manager > Append child/Insert After > New > Map template, the ditamap is inserted as "topicref". I would expect it to be a "mapref".

Is this a bug or are some settings wrong in my Map template?

If I use the Map Reference option to reference an existing ditamap, "mapref" is used.

Re: New ditamaps are referenced as "topicref" instead of "mapref"

Posted: Fri Apr 15, 2016 12:29 pm
by Radu
Hi Ben,

A <mapref> is a specialization of <topicref> which has by default format="ditamap" specified as a default value.
So these two forms:

Code: Select all

<topicref href="test.ditamap" format="ditamap"/>
and:

Code: Select all

<mapref href="test.ditamap"/>
are perfectly equivalent.
Indeed when you choose to create and insert a DITA Map, Oxygen chooses to use the first approach. It's not wrong, indeed maybe it would be better if we used the second approach, at least the reference form is more compact as the @format attribute no longer needs to be clearly specified. I will add an issue for this.

Regards,
Radu