preceding-sibling::*[1]
来源:互联网 发布:未来软件4.8 编辑:程序博客网 时间:2024/06/16 08:41
还是有点不太明白
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]
- UVALive 7414 Sibling Rivalry
- XPath学习:following-sibling
- string format preceding zeros
- backslash preceding characters
- FW-binary - tree - with id and sibling connected - java version 2013年12月18日1:21
- Add Sibling to Binary Tree
- jQuery(一)sibling方法
- mysql启动错误之eror: Found option without preceding group in config file: /Users/gukey/.my.cnf at line: 1
- xsl的preceding::跟following::
- preceding轴和following轴
- preceding轴的使用实例
- squid配置9-sibling模式配置
- squid中cache_peer的sibling用法
- OLAP 函数 (rows 2 preceding / unbounded preceding) ORACLE OLAP 函数
- css ~波浪线选择器连接符General Sibling Selector
- 在Selenium Webdriver中使用XPath Contains、Sibling函数定位
- Squid-2.6之集群(sibling模式)Web反向代理加速实
- [bigdata-097]搭建maven私服 nexus
- poi解析Excel2007
- 纳粹阅兵
- 【转】P档和全自动档有何区别?
- [转]Cygwin, sshd and Windows 7
- preceding-sibling::*[1]
- 【原】Win7 下配置安装Cygwin sshd…
- 关于VI 查找 (多文件)及忽略大小…
- unity3d中导入音频出现“fsbtool64.exe停止工作的提示”的解决办法
- 让你提升命令行效率的 Bash 快捷键…
- Android 底部状态栏 显示与隐藏
- 我的archlinux + fluxbox
- linux c++连接redis
- 终于找到一款超级好的win下的看图…