<xsl:template name="strAfterLast">
<!-- declare that it takes two parameters - the string and the char -->
<xsl

aram name="string" />
<xsl

aram name="char" />
<xsl:choose>
<!-- if the string contains the character... -->
<xsl:when test="contains($string, $char)">
<!-- call the template recursively... -->
<xsl:call-template name="strAfterLast">
<!-- with the string being the string after the character
-->
<xsl:with-param name="string"
select="substring-after($string, $char)" />
<!-- and the character being the same as before -->
<xsl:with-param name="char" select="$char" />
</xsl:call-template>
</xsl:when>
<!-- otherwise, return the value of the string -->
<xsl

therwise><xsl:value-of select="$string" /></xsl

therwise>
</xsl:choose>
</xsl:template>
then to get the last index of a space you could stick the following inside a variable declaration
<xsl:call-template name="strAfterLast">
<xsl:with-param name="string" select="Name" />
<xsl:with-param name="char" select=" " />
</xsl:call-template>
mike griffith
----------------------------
systems and control engineering
case western reserve university
mdg12@cwru.edu