Cross-referenceing of Reuse Content

Post here questions and problems related to editing and publishing DITA content.
jjdave
Posts: 6
Joined: Thu Nov 15, 2018 11:26 pm

Cross-referenceing of Reuse Content

Post by jjdave »

Hi All,

I am using Oxygen Author 20 with DITA 1.2

I have two Topics:
  • Topic-1 and Topic-2
  • Topic-1 has Figure-1
  • Topic-2 has X-ref that says "See Fig-1"
Now in the book, I have two Maps.
  • Map-1 uses Topic-1 and Topic-2
  • Map-2 also uses Topic-1 and Topic-2
When I publish the Book:
  • Map-1, Topic-2 cross-ref points to Topic-1 Fig-1 of Map-1. That is good
  • But in Map-2, Topic-2 cross-ref also points to Topic-1 Fig-1 of Map-1
How can I make, Map-2, Topic-2 cross-ref point to Topic-1 Fig-1 of Map-2?
I know that Key & Keyref are applied at the Map level. And I do not have access to ScopeKey.

Is there any alternative at Topic Level, so reused content points to Topic in its own Map rather than pointing to Topic in other Map?

I hope you understand my question.

Thank you.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Cross-referenceing of Reuse Content

Post by Radu »

Hi,

Do you publish Map1 and Map2 individually or do you have a MainMap which refers both to Map1 and Map2, and you publish the MainMap?
I would understand things better if I would have a small sample DITA project to test.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jjdave
Posts: 6
Joined: Thu Nov 15, 2018 11:26 pm

Re: Cross-referenceing of Reuse Content

Post by jjdave »

Hi,

I have MainMap (as a Book) which includes Map1 (as Chapter1) and Map2 (as Chapter2).

Map1 and Map2 both use same Topics (Topic1 & Topic1).

Hope this adds some clarity to your request.

I will prepare small sample for you but how do I attache it to this Post?
or should I just write XML Codes here?

Thanks.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Cross-referenceing of Reuse Content

Post by Radu »

Hi,

Our email address is "support@oxygenxml.com" if you want to send us small samples.

I think to make this work you would need to use DITA key scopes:
https://www.oxygenxml.com/dita/1.3/spec ... copes.html

For example the content of map1.ditamap would look like this:

Code: Select all

<map keyscope="map1">
  <title>Growing Flowers</title>
  <topicref href="topic1.dita" keys="topic1"/>
  <topicref href="topic2.dita"/>
</map>
and inside topic2.dita you would use a keyref to refer to the figure in topic1.dita:

Code: Select all

<xref keyref="topic1/figId"/>
The content of map2.ditamap would be similar.

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