문제

I know I can specify a node another document using XPointer:

http://www.google.com/#xpointer(...)

But, can I specify an a/@href node in the current document, and point to a node in that document?

도움이 되었습니까?

해결책

Use something like this to go to the root node first, then back down to the hyperlink:

#xpointer(here()//ancestor::*[1]/ancestor::*[1]/descendant::a[@id='#1'])
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top