Hi, I have an XSL file that returns various string values. However the values that are been returned now have a number followed by a # sign at the start of the string i.e. 342#requiredFiles. I want to remove everything before the # sign and the # sign itself...to only leave the string. However i have no experience of XSL and am hoping for some guidance or tutorials... This is the XSL that returns the values - <xsl:value-of select="@FileLeafRef" /> Thanks for any help.....
kieran5405 wrote: > However the values that are been returned now have a number followed > by a # sign at the start of the string i.e. 342#requiredFiles. > > I want to remove everything before the # sign and the # sign > itself...to only leave the string. > > However i have no experience of XSL and am hoping for some guidance or > tutorials... > > This is the XSL that returns the values - > <xsl:value-of select="@FileLeafRef" /> The string functions of XSLT and XPath 1.0 are defined here: <URL:http://www.w3.org/TR/xpath#section-String-Functions> You want <xsl:value-of select="substring-after(@FileLeafRef, '#')"/> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/