Having real trouble with conkeyrefs
Posted: Tue Nov 26, 2013 10:16 pm
I am trying to use conkeyrefs, and if I can't get this to work I can just bag my project because it's success hinges on this feature. The problem I am having is multi-fold. Conkeyrefs I insert from the DITA menu don't get translated in the editor; those that I created manually get translated in the editor but don't get processed into the final document, and the one that shows in the editor as a massive error message is the only one that DOES get translated when I build the document!
This is the topic as it appears in the editor. I am using v11.2:
In the title you can see the error. This is the only value that actually gets imported during translation. The green circled elements get translated in the editor, but not during the translation. The red circled elements were inserted using the editor, but they don't get translated in the editor or during document creation. Here's an image of one being inserted:
To start, here is an excerpt from my ditamap:
The map appears to be correct.
here is an excerpt from one of the two concept files I am referencing:
product.acronym is referenced at the bottom of the topic file as a term:
Earlier I referenced the green elements. They are in the table as "scr490doc.g/scrdoc.g.author", "scr490doc.g/scrdoc.g.revision", and "scr490doc.g/scrdoc.g.released".
Ok, so why does
Help me Obi Wan - you're my only hope!
This is the topic as it appears in the editor. I am using v11.2:
In the title you can see the error. This is the only value that actually gets imported during translation. The green circled elements get translated in the editor, but not during the translation. The red circled elements were inserted using the editor, but they don't get translated in the editor or during document creation. Here's an image of one being inserted:
To start, here is an excerpt from my ditamap:
Code: Select all
<mapref keys="project.keys"
href="../CMES-BCA_Key_Values.ditamap" format="ditamap"/>
<!-- The keydefs defines the location of the datafile containing window parameters/definitions extracted from the Oracle database. This line must be customized for each window P490 document-->
<keydef keys="scr490doc.g" href="P490S[G]-CMES-BCAFN110EPM-Search.dita" type="concept" format="dita" />
<keydef keys="scr490doc.c" href="P490S[C]-CMES-BCAFN110EPM-Search.dita" type="concept" format="dita" />
<topicref navtitle="Title Page" href="../Generic_ADnS_P490S/Generic_ADnS_P490S-0000T.dita" locktitle="yes" toc="no" type="topic" collection-type="sequence" format="dita" scope="local" />
here is an excerpt from one of the two concept files I am referencing:
Code: Select all
<map title="Keyword Replacement DITA Map">
<title>BCA Common MES Replaceable Parameters</title>
<keydef keys="product.acronym">
<topicmeta>
<keywords>
<keyword>CMES-BCA</keyword>
</keywords>
</topicmeta>
.
.
.
Code: Select all
<topic id="P490S-Generic_ADnS_P490S_Title_Page" >
<title>P490S <keyword keyref="scr490doc.g/scrdoc.g.title" /></title>
<shortdesc conkeyref="scr490doc.g/scrdoc.g.sdesc" />
<body>
<table>
<tgroup cols="4">
<colspec colname="c1" colwidth="1.0*"/>
<colspec colname="c2" colwidth="1.0*"/>
<colspec colname="c3" colwidth="1.0*"/>
<colspec colname="c4" colwidth="1.0*"/>
<tbody>
<row>
<entry xtrc="1"><p id="9">Author</p></entry>
<entry xtrc="2"><p id="10">Release</p></entry>
<entry xtrc="3"><p id="11">Revision</p></entry>
<entry xtrc="4"><p id="12">Date</p></entry>
</row>
<row>
<entry xtrc="5"><p id="14" conkeyref="scr490doc.g/scrdoc.g.author" /></entry>
<entry xtrc="6"><p id="15">BP22.0</p></entry>
<entry xtrc="7"><p id="16" conkeyref="scr490doc.g/scrdoc.g.revision" /></entry>
<entry xtrc="8"><p id="17" conkeyref="scr490doc.g/scrdoc.g.released" /></entry>
</row>
</tbody>
</tgroup>
</table>
<table>
<tgroup cols="1">
<colspec colname="c1" colwidth="1.0*"/>
<tbody>
<row>
<entry xtrc="1"><p id="28">Copyright Notice</p></entry>
</row>
<row>
<entry xtrc="2"><p id="30">Copyright © 1995 - 2013 Boeing. All Rights Reserved. This document is the sole and exclusive intellectual property of The Boeing Company and may not be used or adapted for any purpose whatsoever without the prior written consent of The Boeing Company.</p>
</entry>
</row>
</tbody>
</tgroup>
</table>
<p>Configuration Controlled By:</p>
<p> <keyword keyref="product.name"/> ( <keyword keyref="product.acronym"/> )</p>
<p>All future revisions to this document shall be approved by the content owner prior to release.</p>
</body>
</topic>
Ok, so why does
- scr490doc.g/scrdoc.g.title fail in the editor, but succeed during document translation,
- scr490doc.g/scrdoc.g.author, which is referenced exactly the same way, show in the editor, but not the final document,
- and product.acronym show up as a valid element during editing, but not get translated, ever?
Help me Obi Wan - you're my only hope!