Step 3: Use the keys to refer to any of the variables defined in the global key map.
Edit the topic and add the key value using the keyref.
As shown in screenshot, a small window will appear from where keywords can be chosen. This will show when you add the “keyword” element.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "technicalContent/dtd/topic.dtd">
<p>This is a sample topic using the keys defined in the global map</p>
<p>here i am using the key definition for AEM :<keyword keyref="AEM"></keyword></p>
The most common use case - We should use keys and variables in cases where we have some text (maybe product name, company name, etc. ) that is used in many places and might change in the future. Also if there are topics that use different variable values in the context of some other publication then also it would be helpful.