Can I use links to external files in my KEYDEF ditamap
Posted: Fri Mar 23, 2018 3:37 pm
I have a project that uses variables for content such as product names. The variables are defined as KEYDEF elements in a single .ditamap file, and all are contained in a MAP element within the .ditamap file. When I insert a variable into one of my topic files, the list of available variables that I see comes from the .ditamap file that I have selected as the root map for my project.
I'd like to be able to have a subset of my variables be shared across projects. Is there a way that I can format my variables file so that it points to one or more external files for shared variables, while still containing the KEYDEF values for my local variables?
For example:
<map>
<title>Variables</title>
<!--GLOBAL variables-->
....SOME KIND OF LINK TO EXTERNAL FILE WOULD BE HERE....
<!--LOCAL variables-->
<keydef keys="companyCity"><topicmeta><keywords><keyword>Cambridge, MA</keyword></keywords></topicmeta></keydef>
<keydef keys="companyName"><topicmeta><keywords><keyword>Acme</keyword></keywords></topicmeta></keydef>
</map>
I'd like to be able to have a subset of my variables be shared across projects. Is there a way that I can format my variables file so that it points to one or more external files for shared variables, while still containing the KEYDEF values for my local variables?
For example:
<map>
<title>Variables</title>
<!--GLOBAL variables-->
....SOME KIND OF LINK TO EXTERNAL FILE WOULD BE HERE....
<!--LOCAL variables-->
<keydef keys="companyCity"><topicmeta><keywords><keyword>Cambridge, MA</keyword></keywords></topicmeta></keydef>
<keydef keys="companyName"><topicmeta><keywords><keyword>Acme</keyword></keywords></topicmeta></keydef>
</map>