--- title: starts-with slug: Web/XPath/Functions/starts-with tags: - XSLT - XSLT_Reference translation_of: Web/XPath/Functions/starts-with ---

{{ XsltRef() }}

starts-with 関数は第 1 引数の文字列が第 2 引数の文字列で始まるかどうかを調べ、true または false を返します。

{{ 英語版章題("Syntax") }}

構文

starts-with(haystack ,needle)

{{ 英語版章題("Arguments") }}

引数

haystack
検索される文字列。
needle
検索する文字列。

{{ 英語版章題("Returns") }}

戻り値

haystackneedle で始まれば true。 そうでなければ false

{{ 英語版章題("Defined") }}

定義

XPath 1.0 4.2

{{ 英語版章題("Gecko support") }}

Gecko でのサポート

サポート済み。

{{ languages( { "en": "en/XPath/Functions/starts-with", "fr": "fr/XPath/Fonctions/starts-with", "pl": "pl/XPath/Funkcje/starts-with" } ) }}