Visit Mozilla.org

XPath:Functions:starts-with

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents


The starts-with checks whether the first string starts with the second string and returns true or false.

[edit] Syntax

starts-with( haystack , needle)

[edit] Arguments

haystack
The string to look in.
needle
The string to look for.

[edit] Returns

true if haystack starts with needle. Otherwise, false.

[edit] Defined

XPath 1.0 4.2

[edit] Gecko support

Supported.