Skip to main content
Known Participant
August 26, 2014
Answered

keys

  • August 26, 2014
  • 1 reply
  • 1581 views

Hey,

I'm trying to use keys as variables in my DITA project, but I can't figure out how to insert a "variable" in a topic using keys?

This is what my dita map looks like:

<map xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/">

     <title>Product variables</title>

          <keydef keys = "product_name">

               <topicmeta>

                    <keywords>

                             <keyword>Sample Product Name</keyword>

                    </keywords>

                  </topicmeta>

             </keydef>

</map>

This is what the topic looks like but nothing happens

<concept id = "id144FF0W0FFP"

    xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/">

<title>General description</title>

     <conbody>

          <p><keyword keyref = "product_name"></keyword> is a great product.</p>

     </conbody>

</concept>

Can anyone help me?

This topic has been closed for replies.
Correct answer ScottPrentice

I haven't tested this recently, but I believe that the only feature of keys that works in default FM is when used to specify a keydef/@href value.

Keydefs that specify content (as in the example above) should work fine in DITA-FMx 2.0 as well as key-based glossary references. Also, keyspaces in FMx can take ditaval filtering into account (also not supported in default FM).

Cheers,

Scott Prentice

Leximation, Inc.

www.leximation.com

1 reply

November 6, 2014

I'm having the same problem - working in Framemaker12. Did you find an answer? Thanks!

Known Participant
November 6, 2014

Hi KKHoff,

I tried doing this with the DITA-FMx 2.0, trial version, and it worked without any problems.

But I have no answer for regular FM12.

Best regards
Ronny

November 6, 2014

Thanks Ronny and Scott! It's too bad that framemaker does not support keyrefs fully out of the box. Is there maybe a way to "customize" framemaker12 to make this feature work by tweaking the EDD and the read/write rules?