根
|
调用<xsl:apply-templates>处理根节点的儿子。处理时,使用调用时相同的模式
|
元素
|
调用<xsl:apply-templates>处理该节点的儿子。处理时,使用调用时相同的模式
|
属性
|
拷贝属性值到结果树,结果作为文本而不是属性节点
|
文本
|
拷贝文本到结果树
|
注释
|
不做任何事
|
处理指令
|
不做任何事
|
命名空间
|
不做任何事
|
到
从
|
boolean
|
number
|
string
|
node-set
|
tree
|
boolean
|
/
|
false -> 0
true -> 1
|
false -> ‘false’
true -> ‘true’
|
不允许
|
不允许
|
number
|
0 -> false
非0-> true
|
/
|
转化为十进制数
|
不允许
|
不允许
|
string
|
null-> false
其他 -> true
|
解析为十进制
|
/
|
不允许
|
不允许
|
node-set
|
empty -> false
其他 -> true
|
通过string转化
|
文档顺序中第一个节点的字符串值
|
/
|
不允许
|
tree
|
通过string转化
|
通过string转化
|
连接所有的文本节点
|
不允许
|
/
|
Axes
|
Description
|
ancestor::
|
The ancestors of the context node.
The ancestors of the context node consist of the parent of the context node and the parent's parent and so on; thus the
ancestor:: axis always includes the root node unless the context node is the root node.
|
ancestor-or-self::
|
The context node and its ancestors.
The
ancestor-or-self:: axis always includes the root node.
|
attribute::
|
The attributes of the context node.
This axis will be empty unless the context node is an element.
|
child::
|
The children of the context node.
A child is any node immediately below the context node in the tree. However, neither attribute or namespace nodes are considered children of the context node.
|
descendant::
|
The descendants of the context node.
A descendant is a child or a child of a child and so on; thus the
descendant:: axis never contains attribute or namespace nodes.
|
descendant-or-self::
|
The context node and its descendants.
|
following::
|
All nodes that are after the context node in the tree, excluding any descendants, attribute nodes, and namespace nodes.
|
following-sibling::
|
All the following siblings of the context node.
The
following-sibling:: axis identifies just those children of a parent node who appear in the tree after the context node. This axis excludes all other children that appear before the context node.
If the context node is an attribute node or namespace node, the
following-sibling:: axis is empty.
|
namespace::
|
The namespace nodes of the context node.
There is a namespace node for every namespace which is in scope for the context node.
This axis will be empty unless the context node is an element.
|
parent::
|
The parent of the context node, if there is one.
The parent is the node immediately above the context node in the tree.
|
preceding::
|
All nodes that are before the context node in the tree, excluding any ancestors, attribute nodes, and namespace nodes.
One way to think of the preceding axis is all nodes whose content occurs in their entirety before the start of the context node.
|
preceding-sibling::
|
All the preceding siblings of the context node.
The
preceding-sibling:: axis identifies just those children of a parent node who appear in the tree before the context node. This axis excludes all other children that appear after the context node.
If the context node is an attribute node or namespace node, the
preceding-sibling:: axis is empty.
|
self::
|
Just the context node itself.
|
self::
|
.
|
attribute::
|
@
|
parent::
|
..
|
child::
|
|
/descendant-or-self::node()
|
//
|