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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--