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

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Anonymous1

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

Post 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.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply