Is it possible to remove all trailing periods in an element tag, <HEAD>, but KEEP the trailing periods whenever it matches a word within a defined list of abbreviations?
There exists a relatively short list (~50) of abbreviated words that must KEEP the trailing period.
I already have the functionality to remove all trailing periods (thanks Geert!):
<xsl:param name="normArg" select="normalize-space($argument)"/>
<xsl:when test="substring($normArg, string-length($normArg), 1) = '.'">
<xsl:value-of select="substring($normArg, 1, string-length($normArg) - 1)"/>
However, I would like to disable this "removeTrailingDot" functionality whenever the string is defined as within the list of abbreviations. Is this possible using the "contains" keyword (iterate through the list and check to see if the substring matches an abbreviation)?
I have tried without success, and the Map functionality does not work within the confines of my development environment.
Any advice or guidance is greatly appreciated!