Page 1 of 1

abbreviated-form, glossSurfaceForm and introductory context

Posted: Fri Mar 02, 2018 12:33 pm
by annyjul
Hi! I'm new to DITA, so sorry If I ask obvious questions.
I use abbreviated-form to display my glossentry. However abbreviated-form always use glossterm or glossSurfaceForm in introductory contexts or on first use. I need to turn off this behavior and make abbreviated-form always use glossAcronym. Is it possible?

Re: abbreviated-form, glossSurfaceForm and introductory context

Posted: Tue Mar 06, 2018 4:12 pm
by Radu
Hi,

Are you publishing to PDF or XHTML based outputs?
Probably using Oxygen's Find/Replace in Files utility you could try to search in the DITA Open Toolkit XSLT stylesheets (OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\) for abbrev-d/abbreviated-form and see for various output types how the abbreviated form text content is computed.
For example there is an XSLT template in OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\plugins\org.dita.xhtml\xsl\xslhtml\dita2htmlImpl.xsl called:

Code: Select all

<xsl:template match="*" mode="getMatchingAcronym">
and you could look to find places where it's called.

Regards,
Radu