Pass language explicitly to "getVariable" template
Posted: Tue Aug 20, 2019 3:22 pm
Hello,
I have created a customization of the Oxygen WebHelp. One of the XSLT templates matches <xsl:template match="toc:topic>. Inside this template I use <xsl:call-template name="getVariable"> for some localized text. The problem is that somehow no language values seems to be available inside this template so the default language is alway used for localization.
I'm thinking about passing the desired language code explicitly to "getVariable". I've already looked at the code for "getVariable" and "findString" in DITA-OT\xsl\common\dita-utilities.xsl as well as for <xsl:function name="dita-ot:get-variable"> in DITA-OT\xsl\common\functions.xsl but I have no idea how to achieve this.
Any pointers welcome.
Best regards,
Frank
I have created a customization of the Oxygen WebHelp. One of the XSLT templates matches <xsl:template match="toc:topic>. Inside this template I use <xsl:call-template name="getVariable"> for some localized text. The problem is that somehow no language values seems to be available inside this template so the default language is alway used for localization.
I'm thinking about passing the desired language code explicitly to "getVariable". I've already looked at the code for "getVariable" and "findString" in DITA-OT\xsl\common\dita-utilities.xsl as well as for <xsl:function name="dita-ot:get-variable"> in DITA-OT\xsl\common\functions.xsl but I have no idea how to achieve this.
Any pointers welcome.
Best regards,
Frank