[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Dropping unwanted period a the end of node.


Subject: Re: [xsl] Dropping unwanted period a the end of <forename> node.
From: Charles Muller <cmuller-lst@xxxxxxxxxxxxxxx>
Date: Wed, 23 May 2012 21:38:12 +0900

On 2012/05/23 20:15, Michel Hendriksen wrote:
<xsl:when test="substring(forename, string-length(.)) = '.'">
  <xsl:value-of select="surname" />,<xsl:value-of select="forename"
/><xsl:text>&#160;</xsl:text>
    </xsl:when>

should be

<xsl:when test="substring(forename, string-length(forename)) = '.'">
  <xsl:value-of select="surname" />,<xsl:value-of select="forename"
/><xsl:text>&#160;</xsl:text>
    </xsl:when>


Indeed, that's the trick.

Much appreciated!

Chuck


Current Thread