Click to See Complete Forum and Search --> : search of a substring in a string in xsl


pelegk1
September 14th, 2003, 09:38 AM
is there a way to check if a certain substring is contained in agiven string in xsl?
thanks in advance
peleg

khp
September 14th, 2003, 06:41 PM
Yes.
from http://www.w3.org/TR/xpath#section-String-Functions

Function: boolean contains(string, string)

The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.