Subject: Re: [xsl] Finding problems with getting substring from a string. From: andrew welch <andrew.j.welch@xxxxxxxxx> Date: Mon, 18 Jul 2005 09:23:47 +0100 |
> I am writing the substring function. But Some where I am going wrong. > I want a template which accepts the source string and key string as > parameters. > That template should select the string from the source which is befor the > key string. > eg. > Input paremeters > source string : OMLTree^123_UTI > Key String : ^ > > Output String : OMLTree > > Can any one send the code for this template. how about: <xsl:value-of select="substring-before($str, $delim)"/> where $str is the string and $delim is the delimiter ('^') cheers andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Finding problems with getting, Lakshmi narayana | Thread | Re: [xsl] Finding problems with get, Werner, Wolfgang |
[xsl] Finding problems with getting, Lakshmi narayana | Date | Re: [xsl] Finding problems with get, Werner, Wolfgang |
Month |