Use nested keydef

Oxygen general issues.
FelipeFonseca
Posts: 1
Joined: Wed May 29, 2024 1:48 pm

Use nested keydef

Post by FelipeFonseca »

Dear support,


I am trying to achieve to achieve the following:

- Create a keydef1 with a key="x" that is the one I use for different ph in text depending on a profiling (A or B). I was trying to nest a keydef2--->key="y" (to be chosen when profile A is activated) that displays a link from certain href1, and a keydef3 -->key="z" (to be chosen when profile B is activated) that displays a link from certain href2.

Thank you for your collaboration
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Use nested keydef

Post by Radu »

Hi,
I'm not sure if I understand your needs. Maybe you could post the DITA Map XML structure you attempted to make.
A <ph keyref> only expands to plain text content, it cannot expand to text + link content:
https://www.oxygenxml.com/dita/1.3/spec ... -text.html
If you want to reuse some content which resolves both to text and possible links, you would probably need to define that content inside a topic and use conkeyrefs.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply