在线文档教程

substring()

substring()

XSLT / XPath参考:XSLT元素, EXSLT函数,XPath函数,XPath轴

substring函数返回给定字符串的一部分。

句法

substring( string , start [, length] )

参数

string_要评估的字符串。

Returns

A string.

Notes

As in other XPath functions, the position is not zero-based. The first character in the string has a position of 1, not 0.

Defined

XPath 1.0 4.2

Gecko support

Supported.