I made the same behavior using the xsl function: - use is then a little easier:
<xsl:function name="ns:substring-after-last" as="xs:string" xmlns:ns="yourNamespace"> <xsl:param name="value" as="xs:string?"/> <xsl:param name="separator" as="xs:string"/> <xsl:choose> <xsl:when test="contains($value, $separator)"> <xsl:value-of select="ns:substring-after-last(substring-after($value, $separator), $separator)" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$value" /> </xsl:otherwise> </xsl:choose> </xsl:function>
And you can call it directly in the value:
<xsl:value-of select="ns:substring-after-last(.,'=')" xmlns:ns="yourNamespace"/>
Fiveo source share