I am attempting to remove the period at the end of a text element string, like this:
<SUB.HEAD>Here is a nice sub.headline.</SUB.HEAD>
I want it to read: "Here is a nice sub.headline" (without the final period)
However, the function I wrote currently removes all periods:
<xsl:value-of select="translate(.,'.',' ')"/>
So instead of the correct format as above, it appears like this:
"Here is a nice subheadline"
How can I simply remove the trailing/last character when it is a period?
Any advice or guidance is greatly appreciated. Thanks for helping me!