Use of conkeyref with product metadata attribute
Posted: Fri Sep 09, 2016 6:54 pm
Hi,
I am trying to use a conkeyref across 2 sibling ditamaps within a root ditamap.
I have set the user-defined metadata attribute product for each of the sibling ditamaps.
In m_iproperty_docs.ditamap
and in m_iproperty_ags.ditamap
I am setting the key values as follows:
in variables_ip.dita
and in variables_ipags.dita
And I am trying to use the keys as follows expecting that the product attribute will be taken into account at build time.
In c_prop_summary.dita
and in c_prop_summary_ags.dita
However, only the first key defined is used at build time i.e. from variables_ip.dita.
I don't understand how to ensure that the correct key value is resolved based on the product metadata value.
Any advice appreciated,
Regards,
Ann
I am trying to use a conkeyref across 2 sibling ditamaps within a root ditamap.
I have set the user-defined metadata attribute product for each of the sibling ditamaps.
In m_iproperty_docs.ditamap
Code: Select all
<map collection-type="sequence" product="iproperty">
<!-- Key definitions -->
<keydef keys="variables" href="variables_ip.dita" product="iproperty"/>
<!-- End Key definitions -->
Code: Select all
<map collection-type="sequence" product="ipropertyAGS">
<!-- Key Definitions -->
<keydef keys="variables" href="variables_ipags.dita" product="ipropertyAGS"/>
<!-- end Key Definitions -->
in variables_ip.dita
Code: Select all
<concept id="variables_ip" product="iproperty">
<title>Variables_ip</title>
<conbody>
<p><ph id="summary">The <ph conref="../../../dita_files/t_content_refs.dita#t_content_refs/iproperty"/> <ph conkeyref="variables_iproperties/summary"/>
Archived work order tasks (work orders older than six months) are included by default.</ph>
<image></image>
<ph conkeyref="variables_iproperties/actions"/>
</p>
Code: Select all
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="variables_ipags" product="ipropertyAGS">
<title>Variables iPags</title>
<conbody>
<!-- summary -->
<p><ph id="summary">
The <ph conref="../../../dita_files/t_content_refs.dita#t_content_refs/ipropertyags"/> <ph conkeyref="variables_iproperties/summary"/>
</ph></p>
In c_prop_summary.dita
Code: Select all
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="c_prop_summary" product="iproperty">
<title>Property Summary - <ph conref="../../t_content_refs.dita#t_content_refs/iproperty"/></title>
<shortdesc><ph conkeyref="variables/summary"/></shortdesc>
Code: Select all
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="c_prop_summary_ags" product="ipropertyAGS">
<title>Property Summary - <ph conref="../../../t_content_refs.dita#t_content_refs/ipropertyags"/></title>
<shortdesc><ph conkeyref="variables/summary"/></shortdesc>
I don't understand how to ensure that the correct key value is resolved based on the product metadata value.
Any advice appreciated,
Regards,
Ann