我知道我可以使用XPointer在另一个文档中指定一个节点:
http://www.google.com/#xpointer(...)但是,我是否可以在当前文档中指定一个/@href节点,并指向该文档中的一个节点?
发布于 2012-01-20 12:39:16
使用类似下面的命令首先转到根节点,然后再返回到超链接:
#xpointer(here()//ancestor::*[1]/ancestor::*[1]/descendant::a[@id='#1'])https://stackoverflow.com/questions/5811601
复制相似问题