In both cases , the context node is set by the " rule " parent element of the report or assert node 如果在上下文节点中有任何属性,它抛出一个错误。
The descendant - or - self axis contains the context node and the descendants of the context node Descendant - or - self轴axis包含上下文节点本身和该节点的后代节点
The context node for this xpath expression is the element that the template is replacing - in this case , an 这个xpath表达式的上下文节点是模板替换的元素,在这里是
The child axis contains the children of the context node . the child axis is the default axis and it can be omitted Child轴axis包含上下文节点的子元素,作为默认的轴,可以忽略不写
For an outermost expression an expression not occurring within another expression , the current node is always the same as the context node 对于最外面的表达式指一个不属于其它表达式的表达式,当前节点一定就是上下文节点。
This allows you to retrieve objects that represent the context node , the overall source tree , the style sheet , and the transformer currently performing the transformation 这允许您检索代表上下文节点、整个源树、样式表以及当前执行转换的转换程序的对象。
The preceding axis contains all nodes in the same document as the context node that are before the context node in document order , excluding any ancestors and excluding attribute nodes and namespace nodes Following轴axis包含同一文档中按文档顺序位于上下文节点之前的所有节点,除了祖先节点,属性节点和命名空间节点
The following axis contains all nodes in the same document as the context node that are after the context node in document order , excluding any descendants and excluding attribute nodes and namespace nodes Following轴axis包含同一文档中按文档顺序位于上下文节点之后的所有节点,除了祖先节点,属性节点和命名空间节点
The descendant axis contains 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后代轴包含上下文节点的后代,一个后代是指子节点或者子节点的子节点等等,因此descendant轴不会包含属性和命名空间节点
For example , the following instruction prints as many dots as are needed to pad a menu line to 80 characters , after accounting for the length of the price and the entree name more specifically , the length of the 如果不希望传递一个常数值,那么还可以根据其他数据计算要打印的点数。比如,下面的指令分别计算价格和菜名的长度(更具体地说,是上下文节点中