[oXygen-user] Struggling with conkeyref/conaction=pushafter

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Mon Mar 27 11:50:18 CDT 2023


Hi Frank,


Maybe this will help:

https://blog.oxygenxml.com/presentation-reuse/conref_push.html


One remark, Oxygen will not show the pushed content in place but 
publishing should work.


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 3/27/23 18:05, Frank Dissinger wrote:
>
> Hi all,
>
>
> I have tested the "DITA > Push Current element" feature, but cannot 
> get it to work.
>
>
> I want to inject a <dlentry> element into a shared topic which is used 
> in two projects. The element to be injected is stored in a warehouse 
> topic for project 1. What I want is to inject this element only when 
> project 1 is built. When project 2 is built, the key to the warehouse 
> topic resolves to a different file which doese not include the 
> element. So what I hope is that the element is only injected when I 
> build project 1 and that it is left out when I build project 2 -- 
> without any error or warning generated in the log file or in Oxygen's 
> editor window.
>
>
> However, the element does not appear in project 1 and in Oxygen it is 
> shown as an empty <dt><p> struture. In a previous attempt the element 
> was shown in the editor window, but not in output either. I can't 
> remember what I did differently...
>
>
> I may not have undestood this feature correctly. Can someone enlighten 
> me? Thank you.
>
>
> Regards,
>
> Frank
>
>
> The dita code:
>
> *
> *
>
> *file.dita*
>
>         <dlentry conaction="mark" conkeyref="lib_ref/my_id">
>           <dt/>
>           <dd>
>             <p/>
>           </dd>
>         </dlentry>
>         <dlentry conaction="pushafter">
>           <dt>A term. The term in lib_ref.dita should be injected 
> after that.</dt>
>           <dd>
>             <p>Explanation</p>
>           </dd>
>         </dlentry>
>
>
> *lib_ref.dita
> *
>
>       <dl>
>         <dlentry id="my_id">
>           <dt>The term to inject after the term in file.dita</dt>
>           <dd>
>             <p>Explanation</p>
>           </dd>
>         </dlentry>
>       </dl>
>
>
> *variables.ditamap*
>     <keydef href="reuse/lib_ref.dita" keys="lib_ref"/>
>
> Appearance in oXygen.
> -- 
>
> *Frank Dissinger*
>
> Documentation Manager
>
> ....................................................................
>
> *CGS Publishing Technologies International GmbH*
>
> *Email *frank.dissinger at cgs-oris.com | *Web* www.cgs-oris.com 
> <http://www.cgs-oris.com/>
>
> *Address* Kettelerstr. 24 | D-63512 Hainburg | Germany
>
> *Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99
>
> *Commercial register* Offenbach, HRB no. 21495
>
> *Managing directors* Bernd Rückert, Christoph Thommessen
>
>
> https://www.cgs-oris.com/Signatur.png <https://www.cgs-oris.com/signatur>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20230327/120b5ea0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EstacsollFrlKD6H.png
Type: image/png
Size: 51235 bytes
Desc: not available
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20230327/120b5ea0/attachment.png>


More information about the oXygen-user mailing list