Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
How can i check in XSLT if a string is inside another comma separated string?
For example my search string is "Test"
And my list is: "Help, Time, Test, Umbraco"
Now i want to search if "Test" is included and if yes return true else false
contains(string1,string2) Returns true if string1 contains string2, otherwise it returns false
Example: contains('XML','XM') Result: true
http://www.w3schools.com/Xpath/xpath_functions.asp
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Check if Value is in list
Hello,
How can i check in XSLT if a string is inside another comma separated string?
For example my search string is "Test"
And my list is: "Help, Time, Test, Umbraco"
Now i want to search if "Test" is included and if yes return true else false
contains(string1,string2) Returns true if string1 contains string2, otherwise it returns false
Example: contains('XML','XM')
Result: true
http://www.w3schools.com/Xpath/xpath_functions.asp
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.