Where is the template for the salutation_string?
- Article Type: Q&A
- Product: Aleph
- Product Version: 20
Question
Where is the template for the salutation_string?
Answer
The salutation_string isn't a template, it is a parameter to a template. The complete section of code is:
<xsl:call-template name="generic-line">
<xsl:with-param name="line" select='"salutation_string"'/>
so the template is actually generic-line and the parameter is salutation_string. The template generic-line is in funcs-misc.xsl (in the form directory, e.g. ./xxx01/form_eng)
In essence it calls choose-salutation-title, which looks like:
<xsl:template name="choose-salutation-title">
<xsl:choose>
<xsl:when test="./z302-salutation-title != ''">
<xsl:value-of select="./z302-salutation-title"/>
</xsl:when>
<xsl:otherwise><br/><br/>Dear Sir/Madam,<br/><br/></xsl:otherwise>
</xsl:choose>
</xsl:template>
So if the z302-salutation-title is populated then it is used, otherwise the generic 'Dear Sir/Madam' is used.
Category: Circulation
Subject: Printing
- Article last edited: 11/3/2014