Page 1 of 1

Profile a single topic differently in multiple places in a DITA map

Posted: Mon Mar 18, 2019 6:16 pm
by cfurlin
I have several topics that are similar in structure but with different phrases and I'd like to write a hybrid topic and use in multiple places in a DITAmap.

Here is an example element:

Code: Select all

<p>Setup a <ph platform="one">Platform One</ph><ph platform="two">Platform Two</ph> in Microsoft Azure.</p>
I have two PH tags with different platforms and I'd like to add this file in two different places in my map but have one file profiled to platform="one" and the other to platform="two". In the output each topic reference would filter to only using one of the phrases.

Is this even possible? I tried adding the profile condition to the topic reference for each but it still renders both.

I'm guessing my approach is wrong. Suggestions?

---
Chris

Re: Profile a single topic differently in multiple places in a DITA map

Posted: Tue Mar 19, 2019 8:19 am
by Radu
Hi Chris,

What you want can only be done using DITA 1.3 features.
You can either do that using DITA key scopes:

http://blog.oxygenxml.com/2015/08/dita- ... on-of.html

or using DITA 1.3 branch filtering:

http://blog.oxygenxml.com/2015/09/dita- ... -next.html

Regards,
Radu