Page 1 of 1

abbreviated-form and keyref

Posted: Sat Jan 28, 2023 8:56 pm
by gbv34
The abbreviated-form element used with

Code: Select all

<abbreviated-form keyref=""/>
is pretty handy to display description from a glossary term. It offers information when hovering a link provided through a keyref and a link to the term definition on a specific topic. However, when clicking a link to a term topic, I noticed I can't choose to open a new window

Code: Select all

target="_blank"
or to be redirected within the current window. My issue is the following, is there any way to customize the target for a keyref used with the abbreviated form?

From my research, the abbrev-domain.xsl contains a relevant template with:

Code: Select all

  <xsl:template match="*[contains(@class,' abbrev-d/abbreviated-form ')]" name="topic.abbreviated-form">
    <xsl:variable name="keys" select="@keyref"/>
    <xsl:variable name="target" select="key('id', substring(@href, 2))[1]" as="element()?"/>
    ...
Has anyone already met this need?

Re: abbreviated-form and keyref

Posted: Sun Jan 29, 2023 5:05 am
by chrispitude
Hi Gaspard,

Which transformation type are you using for output?

- Chris

Re: abbreviated-form and keyref

Posted: Sun Jan 29, 2023 8:01 pm
by gbv34
Hi Chris,
I'm currently using html5 transtype.

Re: abbreviated-form and keyref

Posted: Mon Jan 30, 2023 7:33 am
by Radu
Hi Gaspard,

From what I remember we have not had similar requests in the past. But indeed probably something like this can be done with an XSLT customization.
If your question is in general for the DITA XML community, you could try to ask on the DITA Users List:
https://dita-users.groups.io/g/main
Most people registered on the Oxygen XML forum have opted to receive notifications only for their specific posts.

Regards,
Radu