非常教程

Xslt & Xpath参考手册

XPath 函数 | XPath Functions

substring()

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

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

句法

substring( string , start [, length] )

参数

string_要评估的字符串。

start子字符串中string开始的位置

length(可选)子字符串的长度。如果省略,则返回的字符串将包含从start位置到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.

Xslt & Xpath

XSLT 是扩展样式表转换语言 的外语缩写,这是一种对 XML(标准通用标记语言的子集)文档进行转化的语言,XSLT 中的 T 代表英语中的“转换”(Transformation)。它是 XSL(eXtensible Stylesheet Language)规范的一部分

Xslt & Xpath目录

1.其他杂项 | Miscellaneous
2.XPath 轴 | XPath Axes
3.XSLT元素 | XSLT Elements
4.XPath 函数 | XPath Functions
5.XPath 教程
6.XPath 实例
7.XPath 运算符
8.XPath 轴(Axes)
9.XPath 语法
10.XPath 节点
11.XPath 简介
12.XPath、XQuery 以及 XSLT 函数
13.XPath 总结