Page 1 of 1

Use nested keydef

Posted: Wed May 29, 2024 1:59 pm
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

Re: Use nested keydef

Posted: Wed May 29, 2024 2:49 pm
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