还是有点不太明白

search the relative information about xpath axis 'preceding-sibling', find there are the same question from otherssee[1]. The output display document order when apply preceding-sibling::*[1] to the context node in xpath1.0, and reversed in xpath2.0. It's annoyingly to have one output with xmlspy2006 but another display in Office software. It's questional what version its used internally.

Just like the diagram (using 'X' to presented the current location, that is to say the context )described as [2], i think it's true for xpath2.0.

preceding-sibling

current()

following-sibling

last()

...

2

1

X

1

2

...

last()

The reversed order which works with xpath1.0 should be like this:

preceding-sibling

current()

following-sibling

1

2

...

last()

X

1

2

...

last()

Is that right?

[1]http://mail.gnome.org/archives/xml/2005-August/msg00045.html

[2]http://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx

preceding-sibling::*[1]相关推荐

  1. [翻译]帮助文档-jQuery 选择器

    jQuery的选择器是CSS 1-3,XPath的结合物.jQuery提取这二种查询语言最好的部分,融合后创造出了最终的jQuery表达式查询语言.如果你了解CSS(绝大部分WEB开发者都用到的),那 ...

  2. jquery教程_jQuery教程

    jquery教程 I have written a lot of jQuery tutorial articles. This is an index post for all the jQuery ...

  3. jQuery1.2选择器

    jQuery1.2选择器 以下的文档根据官网1.2选择器汉化,并做相应的调整及加入了部份示例. 由于实际使用中选择器在IE和非IE下会有不同的效果,请参照红色的字样.如有错误请及时联系我. 绯雨汉化: ...

  4. 【资料补充】元素定位和定位辅助工具

    Web页面组成-代码 <!DOCTYPE html> <html lang="en"> <head><meta charset=" ...

  5. 元素定位和定位辅助工具

    Web页面组成-代码 <!DOCTYPE html> <html lang="en"> <head><meta charset=" ...

  6. 在Selenium Webdriver中使用XPath Contains、Sibling函数定位

    前言 在一般情况下,我们通过简单的xpath即可定位到目标元素,但对于一些既没id又没name,而且其他属性都是动态的情况就很难通过简单的方式进行定位了. 在这种情况下,我们需要使用xpath1.0内 ...

  7. pandas使用fillna函数并设置fffill参数使用列中的前序值填充缺失值(replace missing values with preceding values in column in d

    pandas使用fillna函数并设置fffill参数使用列中的前序值填充缺失值(replace missing values with preceding values in column in d ...

  8. Mysql在离线安装时提示:error: Found option without preceding group in config file

    场景 Mysql在Windows上离线安装与配置: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/117563780 在上面进行离 ...

  9. 【目标检测_解耦】 Revisiting the Sibling Head in Object Detector_2020

    论文地址:https://arxiv.org/pdf/2003.07540.pdf 文章目录 Abstract 1. Introduction 2.Methods 2.1 TSD 2.2 Task-a ...

  10. MySQL - Found option without preceding group in config file

    1.1.1 现象 启动MYSQL超时,windows提示错误,在服务中MYSQL状态一直处于starting状态,执行MYSQL命令,出现如下错误信息: error:found option with ...

最新文章

  1. java 数据库 流式查询_关于mybatis:强大MyBatis-三种流式查询方法
  2. 关系查询处理 查询优化 论文_每日论文33:关系数据库中的关键词查询结果动态优化...
  3. 批量修改Project视图中Prefab的名字
  4. AJAX请求 $.post方法的使用
  5. 201671010129 2016—2017—2 《Java程序设计》Java总结
  6. 基于SSM的二手交易平台
  7. 不确定性原理的前世今生 · 数学篇(一)
  8. 输入一个链表,按链表值从尾到头的顺序返回一个ArrayList。
  9. 品牌类软文经典案例分享,深刻了解软文营销的“魅力”
  10. 《ISO20000-12011 认证合格判定基础》(证书样例子+认证文档+录音下载)
  11. mac系统postman+newman生成测试报告
  12. 15软件班安卓课程实训总结
  13. 看山聊 Java:检查日期字符串是否合法
  14. java: 读取D:\repository\org\lz4\lz4-java\1.7.1\lz4-java.jar时出错; error in opening zip file解决方案
  15. 精通Groovy_B 循环, 范围, 集合, 映射, 闭包, 类, UT
  16. 汉思新材料:无人机控制板BGA芯片底部填充胶应用
  17. 双译记:UCLA朱松纯团队验证机器人任务中可解释性,登Science子刊
  18. 获奖公布|@程序员,你读过的书,藏着自己的命运
  19. 数据分析之Hadoop详解
  20. C++内存分布探讨,x86和x64位的细微区别

热门文章

  1. cocos网络通信php,Cocos2D-X服务器的网络通信编程
  2. Logstash 时区问题
  3. 校验组织机构代码 合法性
  4. 全国省市区数据SQL - 省市区
  5. Nat Nanotechnol | 朱涛/陈春英等合作发现碳纳米管呼吸暴露后的延迟毒性导致小鼠原位乳腺肿瘤的多发性广泛转移...
  6. 删除微信文件服务器,局域网微信存储空间怎么清理
  7. ABAP:BTE的查找及使用
  8. 计统大作业Hello P2P
  9. 电脑重装系统后Word表格自动换行的方法
  10. 阿米洛键盘失灵_改变静电容键盘手感单一限制,阿米洛静电容机械轴V2上手