A keyref in a conref/conkeyref pushed element
Posted: Wed Sep 25, 2013 5:24 pm
Hello there,
In the frame of this project on Github (https://github.com/ColinMaudry/dita-product-cascading), I am trying to make the best out of the reuse and referencing mechanisms included in DITA 1.2.
So far I didn’t have any trouble, but I think I’ve hit a bone.
I’m trying to push an element that contains a key reference to a keyword, using the conkeyref push method.
The element gets pushed, the key is resolved in the source topic, but not in the target. Here is the markup:
Map.ditamap
----------------------------------------------
source.dita
------------------------------------------------
target.dita
I have tried the following variations, with the same unsuccessful result (the element is pushed, the key is not resolved in the target topic):
- replacing conkeyref with conref
- using keyref on a xref element, with a reference to the “target” key
Is it specified somewhere that the conref push doesn’t support inner key references, is it a DITA OT limitation or am I doing something wrong?
I use the DITA OT bundled in Oxygen XML 15.0, v 1.7.2. I have used the default PDF and XHTML pipelines.
I also posted this issue on the dita-users list, I will keep both threads in sync.
Thanks,
Colin Maudry
In the frame of this project on Github (https://github.com/ColinMaudry/dita-product-cascading), I am trying to make the best out of the reuse and referencing mechanisms included in DITA 1.2.
So far I didn’t have any trouble, but I think I’ve hit a bone.
I’m trying to push an element that contains a key reference to a keyword, using the conkeyref push method.
The element gets pushed, the key is resolved in the source topic, but not in the target. Here is the markup:
Map.ditamap
Code: Select all
<map id="ds_doc" rev="0.5">
<title>My map</title>
<keydef keys="bla">
<topicmeta>
<keywords>
<keyword>KEY</keyword>
</keywords>
</topicmeta>
</keydef>
<topicref href="source.dita" processing-role="normal" format="dita"/>
<topicref href="target.dita" keys="target" format="dita"/>
</map>
source.dita
Code: Select all
<topic id="source">
<title>Source</title>
<body>
<p conaction="pushbefore">This is the conref pushed content, with a <keyword keyref="bla"/></p>
<p conaction="mark" conkeyref="target/anchor"/>
</body>
</topic>
target.dita
Code: Select all
<topic id="target">
<title>Target</title>
<body>
<section>
<title>I want my pushed content in there</title>
<p id="anchor"/>
</section>
<section>
<title>I want an equation image in there</title>
<image placement="break" href="../image.jpg" align="center"/>
</section>
</body>
</topic>
- replacing conkeyref with conref
- using keyref on a xref element, with a reference to the “target” key
Is it specified somewhere that the conref push doesn’t support inner key references, is it a DITA OT limitation or am I doing something wrong?
I use the DITA OT bundled in Oxygen XML 15.0, v 1.7.2. I have used the default PDF and XHTML pipelines.
I also posted this issue on the dita-users list, I will keep both threads in sync.
Thanks,
Colin Maudry