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.
是否有任何标准(或实用)表示法可以一起表达文件路径和 xpath?
如...
xml.xml:///a/b/c
我相信我在其他地方看到过,但我找不到该页面。
[更新]
我想我在问XPointer。:)
XPointer
您应该使用 a#代替:
#
xlink:href="http://dog.com/dogbreeds.xml#xpointer(id('Rottweiler'))"
或者,更短的版本:
xlink:href="http://dog.com/dogbreeds.xml#Rottweiler"