--- title: string-length slug: Web/XPath/Functions/string-length tags: - XSLT - XSLT_Reference translation_of: Web/XPath/Functions/string-length ---

{{ XsltRef() }}

string-length 関数は、与えられた文字列の文字数に等しい数値を返します。

構文

string-length( [string] )

引数

string(省略可)
評価する文字列。省略すると、コンテキストノードを文字列に変換したものが使用されます。

返値

文字列の文字数に等しい整数。

定義

XPath 1.0 4.2

Gecko での対応

対応済み。