Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Wed, 9 Apr 2008 08:43:36 -0700 (PDT),    group: microsoft.public.xsl        back       


XSL - editing returned values   
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.....
date: Wed, 9 Apr 2008 08:43:36 -0700 (PDT)   author:   kieran5405

Re: XSL - editing returned values   
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/
date: Wed, 09 Apr 2008 18:53:47 +0200   author:   Martin Honnen

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us