OT cannot find a keydef in a root map stored in SharePoint

Oxygen general issues.
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

OT cannot find a keydef in a root map stored in SharePoint

Post by Rodrik »

I have a an xref that looks like this:

Code: Select all

<xref keyref="result_object"/>


It's in a topic that is part of a map that is a chapter in a bookmap.

I have separate root map that looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>Root keyrefs</title>
<topicgroup>
<keydef keys="result_object" href="fd738668-66bd-4ee2-9125-556b5ab3584f.dita" ></keydef>
</topicgroup>
</map>
This map is specified as the root map in Oxygen Author. All files are stored in the same library and folder on SharePoint.

When I run the my usual webhelp transformation, Open toolkit reports [DOTJ047I] Unable to find key definition for keyref="...

Any idea what I'm doing wrong?

Regards

Rodrik
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

Re: OT cannot find a keydef in a root map stored in SharePoi

Post by Rodrik »

I think I've solved it. I didn't realize that I still needed to reference the map specified as the root map in the bookmap.

Rodrik
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: OT cannot find a keydef in a root map stored in SharePoi

Post by Radu »

Hi Rodrik,

This root-map concept is a concept that can be used in Oxygen to edit a submap and have Oxygen correctly identify targets for keyrefs without the need for the main DITA Map to be opened and selected in the DITA Maps Manager.

But the root-map concept does not apply at all when publishing using the DITA Open Toolkit engine. The published DITA Map is always assumed to be the root map.

Actually I logged a similar issue on the DITA OT bugs list here:

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

It was about publishing a DITA topic but also specifying a root map to resolve keys.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply