Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我可以使用 XPointer 指定另一个文档的节点:
http://www.google.com/#xpointer(...)
但是,我可以在当前文档中指定一个 a/@href 节点,并指向该文档中的一个节点吗?
使用类似这样的东西首先转到根节点,然后返回到超链接:
#xpointer(here()//ancestor::*[1]/ancestor::*[1]/descendant::a[@id='#1'])