abbreviated-form and keyref
Posted: Sat Jan 28, 2023 8:56 pm
The abbreviated-form element used with 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 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:
Has anyone already met this need?
Code: Select all
<abbreviated-form keyref=""/>
Code: Select all
target="_blank"
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()?"/>
...