Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dominik 711 posts 733 karma points
    May 06, 2011 @ 16:35
    dominik
    0

    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

  • Mike Chambers 636 posts 1253 karma points c-trib
    May 06, 2011 @ 17:21
    Mike Chambers
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft