Answer by Alexander Hugestrand for XSL substring and indexOf
I wrote my own index-of function, inspired by strpos() in PHP.<xsl:function name="fn:strpos"><xsl:param name="haystack"/><xsl:param name="needle"/><xsl:value-of...
View ArticleAnswer by MrWatson for XSL substring and indexOf
Here is some one liner xpath 1.0 expressions for IndexOf( $text, $searchString ):If you need the position of the FIRST character of the sought string, or 0 if it is not...
View ArticleAnswer by Hemant for XSL substring and indexOf
The following is the complete example containing both XML and XSLT where substring-before and substring-after are used<?xml version="1.0" encoding="UTF-8"?><persons...
View ArticleAnswer by user357812 for XSL substring and indexOf
I want to select the text of a string that is located after the occurrence of substringYou could use: substring-after($string,$match)If you want a subtring of the above with some length then...
View ArticleAnswer by LarsH for XSL substring and indexOf
It's not clear exactly what you want to do with the index of a substring [update: it is clearer now - thanks] but you may be able to use the function substring-after or...
View ArticleAnswer by Jon for XSL substring and indexOf
There is a substring function in XSLT. Example here.
View ArticleXSL substring and indexOf
I'm new to XSLT. I wonder if it is possible to select a substring of an item. I'm trying to parse an RSS feed. The description value has more text than what I want to show. I'd like to get a subtring...
View Article
More Pages to Explore .....