Name

GetUserName

Example

  <xsl:call-template name="GetUserName">
    <xsl:with-param name="Person" select="@Created"/>
  </xsl:call-template>

Code

  <xsl:template name="GetUserName">
    <xsl:param name="Person"/>
      <xsl:value-of select="substring-after(substring-before(substring-after($Person, 'ID='), '&lt;'), '&gt;')"/>
  </xsl:template>

Last edited Apr 26, 2010 at 8:28 PM by sympmarc, version 1

Comments

genetorrey Oct 24, 2012 at 10:44 PM 
Marvelously simple, and obvious (like why didn't I think of that?). My hero.