xslt substring last code example Example: xsl last character of a string <xsl:value-of select="substring(., string-length(.), 1)" />